MCPcopy
hub / github.com/rs/zerolog / AppendKey

Method AppendKey

internal/cbor/base.go:14–19  ·  view source on GitHub ↗

AppendKey adds a key (string) to the binary encoded log message

(dst []byte, key string)

Source from the content-addressed store, hash-verified

12
13// AppendKey adds a key (string) to the binary encoded log message
14func (e Encoder) AppendKey(dst []byte, key string) []byte {
15 if len(dst) < 1 {
16 dst = e.AppendBeginMarker(dst)
17 }
18 return e.AppendString(dst, key)
19}

Callers

nothing calls this directly

Calls 2

AppendBeginMarkerMethod · 0.95
AppendStringMethod · 0.95

Tested by

no test coverage detected