MCPcopy
hub / github.com/uber-go/zap / user

Struct user

benchmarks/zap_test.go:93–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93type user struct {
94 Name string `json:"name"`
95 Email string `json:"email"`
96 CreatedAt time.Time `json:"created_at"`
97}
98
99func (u *user) MarshalLogObject(enc zapcore.ObjectEncoder) error {
100 enc.AddString("name", u.Name)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected