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

Method RawJSON

array.go:101–104  ·  view source on GitHub ↗

RawJSON adds already encoded JSON to the array.

(val []byte)

Source from the content-addressed store, hash-verified

99
100// RawJSON adds already encoded JSON to the array.
101func (a *Array) RawJSON(val []byte) *Array {
102 a.buf = appendJSON(enc.AppendArrayDelim(a.buf), val)
103 return a
104}
105
106// Err serializes and appends the err to the array.
107func (a *Array) Err(err error) *Array {

Callers

nothing calls this directly

Calls 2

appendJSONFunction · 0.70
AppendArrayDelimMethod · 0.65

Tested by

no test coverage detected