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

Method appendObject

event.go:245–249  ·  view source on GitHub ↗
(obj LogObjectMarshaler)

Source from the content-addressed store, hash-verified

243}
244
245func (e *Event) appendObject(obj LogObjectMarshaler) {
246 e.buf = enc.AppendBeginMarker(e.buf)
247 obj.MarshalZerologObject(e)
248 e.buf = enc.AppendEndMarker(e.buf)
249}
250
251// Object marshals an object that implement the LogObjectMarshaler interface.
252func (e *Event) Object(key string, obj LogObjectMarshaler) *Event {

Callers 2

ObjectMethod · 0.95
appendObjectFunction · 0.80

Calls 3

AppendBeginMarkerMethod · 0.65
MarshalZerologObjectMethod · 0.65
AppendEndMarkerMethod · 0.65

Tested by

no test coverage detected