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

Method MarshalZerologObject

log_example_test.go:213–217  ·  view source on GitHub ↗
(e *zerolog.Event)

Source from the content-addressed store, hash-verified

211}
212
213func (u User) MarshalZerologObject(e *zerolog.Event) {
214 e.Str("name", u.Name).
215 Int("age", u.Age).
216 Time("created", u.Created)
217}
218
219type Price struct {
220 val uint64

Callers

nothing calls this directly

Calls 3

TimeMethod · 0.45
IntMethod · 0.45
StrMethod · 0.45

Tested by

no test coverage detected