github.com/Cloud-Foundations/Dominator@v0.3.4/lib/log/formatter/api.go (about)

     1  package formatter
     2  
     3  // Pairs will format an arbitrary number of format,value pairs. If the value for
     4  // a pair is the empty string, the pair is not included. This is convenient way
     5  // to avoid formatting for empty strings. A trailing singleton is also included.
     6  // The formatted string is returned.
     7  func Pairs(pairs ...string) string {
     8  	return formatPairs(pairs)
     9  }