MCPcopy
hub / github.com/sirupsen/logrus / appendKeyValue

Method appendKeyValue

text_formatter.go:320–327  ·  view source on GitHub ↗
(b *bytes.Buffer, key string, value interface{})

Source from the content-addressed store, hash-verified

318}
319
320func (f *TextFormatter) appendKeyValue(b *bytes.Buffer, key string, value interface{}) {
321 if b.Len() > 0 {
322 b.WriteByte(' ')
323 }
324 b.WriteString(key)
325 b.WriteByte('=')
326 f.appendValue(b, value)
327}
328
329func (f *TextFormatter) appendValue(b *bytes.Buffer, value interface{}) {
330 stringVal, ok := value.(string)

Callers 1

FormatMethod · 0.95

Calls 1

appendValueMethod · 0.95

Tested by

no test coverage detected