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

Method Object

array.go:77–80  ·  view source on GitHub ↗

Object marshals an object that implement the LogObjectMarshaler interface and appends it to the array.

(obj LogObjectMarshaler)

Source from the content-addressed store, hash-verified

75// Object marshals an object that implement the LogObjectMarshaler
76// interface and appends it to the array.
77func (a *Array) Object(obj LogObjectMarshaler) *Array {
78 a.buf = appendObject(enc.AppendArrayDelim(a.buf), obj, a.stack, a.ctx, a.ch)
79 return a
80}
81
82// Str appends the val as a string to the array.
83func (a *Array) Str(val string) *Array {

Callers 3

ErrMethod · 0.95
ErrsMethod · 0.95
InterfaceMethod · 0.95

Calls 2

appendObjectFunction · 0.85
AppendArrayDelimMethod · 0.65

Tested by

no test coverage detected