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

Method MarshalLogArray

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

Source from the content-addressed store, hash-verified

550type turduckens int
551
552func (t turduckens) MarshalLogArray(enc ArrayEncoder) error {
553 var err error
554 tur := turducken{}
555 for i := 0; i < int(t); i++ {
556 err = multierr.Append(err, enc.AppendObject(tur))
557 }
558 return err
559}
560
561type loggable struct{ bool }
562

Callers

nothing calls this directly

Calls 1

AppendObjectMethod · 0.65

Tested by

no test coverage detected