kuvia2/vendor/github.com/rs/zerolog/internal/cbor/base.go
2022-01-15 00:09:03 +01:00

11 lines
No EOL
253 B
Go

package cbor
type Encoder struct{}
// AppendKey adds a key (string) to the binary encoded log message
func (e Encoder) AppendKey(dst []byte, key string) []byte {
if len(dst) < 1 {
dst = e.AppendBeginMarker(dst)
}
return e.AppendString(dst, key)
}