wg-quicker/vendor/github.com/rs/zerolog/internal/cbor/base.go
Marvin Steadfast 104e72bd86
All checks were successful
continuous-integration/drone/push Build is passing
adds ability to kill a process of a userland wireguard-go
2021-04-16 14:21:36 +02:00

11 lines
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)
}