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

Method MarshalZerologArray

log_example_test.go:237–241  ·  view source on GitHub ↗
(a *zerolog.Array)

Source from the content-addressed store, hash-verified

235type Users []User
236
237func (uu Users) MarshalZerologArray(a *zerolog.Array) {
238 for _, u := range uu {
239 a.Object(u)
240 }
241}
242
243func ExampleEvent_Array() {
244 log := zerolog.New(os.Stdout)

Callers

nothing calls this directly

Calls 1

ObjectMethod · 0.45

Tested by

no test coverage detected