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

Method Bytes

array.go:89–92  ·  view source on GitHub ↗

Bytes appends the val as a string to the array.

(val []byte)

Source from the content-addressed store, hash-verified

87
88// Bytes appends the val as a string to the array.
89func (a *Array) Bytes(val []byte) *Array {
90 a.buf = enc.AppendBytes(enc.AppendArrayDelim(a.buf), val)
91 return a
92}
93
94// Hex appends the val as a hex string to the array.
95func (a *Array) Hex(val []byte) *Array {

Callers

nothing calls this directly

Calls 2

AppendBytesMethod · 0.65
AppendArrayDelimMethod · 0.65

Tested by

no test coverage detected