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

Method AddArray

error_test.go:123–129  ·  error_test.go::brokenArrayObjectEncoder.AddArray
(key string, marshaler zapcore.ArrayMarshaler)

Source from the content-addressed store, hash-verified

121}
122
123func (enc brokenArrayObjectEncoder) AddArray(key string, marshaler zapcore.ArrayMarshaler) error {
124 return enc.ObjectEncoder.AddArray(key,
125 zapcore.ArrayMarshalerFunc(func(ae zapcore.ArrayEncoder) error {
126 enc.ArrayEncoder = ae
127 return marshaler.MarshalLogArray(enc)
128 }))
129}
130
131func (enc brokenArrayObjectEncoder) AppendObject(zapcore.ObjectMarshaler) error {
132 return enc.Err

Callers

nothing calls this directly

Calls 3

ArrayMarshalerFuncFuncType · 0.92
AddArrayMethod · 0.65
MarshalLogArrayMethod · 0.65

Tested by

no test coverage detected