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

Method appendKey

logger/formatter_pretty.go:158–164  ·  view source on GitHub ↗

appendKey appends an attribute key to the buffer.

(key string)

Source from the content-addressed store, hash-verified

156
157// appendKey appends an attribute key to the buffer.
158func (s *formatterPretty) appendKey(key string) {
159 s.buf.append(' ')
160 s.buf.append(s.colorThin...)
161 s.buf.appendString(key)
162 s.buf.append(prettyColorReset...)
163 s.buf.append('=')
164}
165
166// appendValue appends an attribute value to the buffer, applying quoting rules as necessary.
167func (s *formatterPretty) appendValue(val slog.Value) {

Callers 3

formatMethod · 0.95
appendAttributeMethod · 0.95
openGroupMethod · 0.95

Calls 2

appendMethod · 0.80
appendStringMethod · 0.45

Tested by

no test coverage detected