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

Method Dict

array.go:265–270  ·  view source on GitHub ↗

Dict adds the dict Event to the array

(dict *Event)

Source from the content-addressed store, hash-verified

263
264// Dict adds the dict Event to the array
265func (a *Array) Dict(dict *Event) *Array {
266 dict.buf = enc.AppendEndMarker(dict.buf)
267 a.buf = append(enc.AppendArrayDelim(a.buf), dict.buf...)
268 putEvent(dict)
269 return a
270}
271
272// Type adds the val's type using reflection to the array.
273func (a *Array) Type(val interface{}) *Array {

Callers

nothing calls this directly

Calls 3

putEventFunction · 0.85
AppendEndMarkerMethod · 0.65
AppendArrayDelimMethod · 0.65

Tested by

no test coverage detected