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

Method AddArray

zapcore/error_test.go:216–222  ·  zapcore/error_test.go::brokenArrayObjectEncoder.AddArray
(key string, marshaler ArrayMarshaler)

Source from the content-addressed store, hash-verified

214}
215
216func (enc brokenArrayObjectEncoder) AddArray(key string, marshaler ArrayMarshaler) error {
217 return enc.ObjectEncoder.AddArray(key,
218 ArrayMarshalerFunc(func(ae ArrayEncoder) error {
219 enc.ArrayEncoder = ae
220 return marshaler.MarshalLogArray(enc)
221 }))
222}
223
224func (enc brokenArrayObjectEncoder) AppendObject(ObjectMarshaler) error {
225 return enc.Err

Callers

nothing calls this directly

Calls 3

ArrayMarshalerFuncFuncType · 0.85
AddArrayMethod · 0.65
MarshalLogArrayMethod · 0.65

Tested by

no test coverage detected