MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / appendKey

Method appendKey

logger/formatter_structured.go:104–111  ·  view source on GitHub ↗

appendKey appends an attribute key to the buffer.

(key string)

Source from the content-addressed store, hash-verified

102
103// appendKey appends an attribute key to the buffer.
104func (s *formatterStructured) appendKey(key string) {
105 if len(*s.buf) > 0 {
106 s.buf.append(' ')
107 }
108
109 s.buf.appendString(s.prefix.String() + key)
110 s.buf.append('=')
111}
112
113// appendValue appends an attribute value to the buffer, applying quoting.
114func (s *formatterStructured) appendValue(val slog.Value) {

Callers 2

formatMethod · 0.95
appendAttributeMethod · 0.95

Calls 3

appendMethod · 0.80
appendStringMethod · 0.45
StringMethod · 0.45

Tested by

no test coverage detected