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

Struct maybeNamespace

zapcore/json_encoder_impl_test.go:580–580  ·  view source on GitHub ↗

maybeNamespace is an ObjectMarshaler that sometimes opens a namespace

Source from the content-addressed store, hash-verified

578
579// maybeNamespace is an ObjectMarshaler that sometimes opens a namespace
580type maybeNamespace struct{ bool }
581
582func (m maybeNamespace) MarshalLogObject(enc ObjectEncoder) error {
583 enc.AddString("obj-out", "obj-outside-namespace")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected