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

Method MarshalLogArray

zapcore/json_encoder_impl_test.go:571–577  ·  view source on GitHub ↗
(enc ArrayEncoder)

Source from the content-addressed store, hash-verified

569}
570
571func (l loggable) MarshalLogArray(enc ArrayEncoder) error {
572 if !l.bool {
573 return errors.New("can't marshal")
574 }
575 enc.AppendBool(true)
576 return nil
577}
578
579// maybeNamespace is an ObjectMarshaler that sometimes opens a namespace
580type maybeNamespace struct{ bool }

Callers

nothing calls this directly

Calls 1

AppendBoolMethod · 0.65

Tested by

no test coverage detected