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

Method AppendArray

zapcore/json_encoder.go:210–216  ·  view source on GitHub ↗
(arr ArrayMarshaler)

Source from the content-addressed store, hash-verified

208}
209
210func (enc *jsonEncoder) AppendArray(arr ArrayMarshaler) error {
211 enc.addElementSeparator()
212 enc.buf.AppendByte('[')
213 err := arr.MarshalLogArray(enc)
214 enc.buf.AppendByte(']')
215 return err
216}
217
218func (enc *jsonEncoder) AppendObject(obj ObjectMarshaler) error {
219 // Close ONLY new openNamespaces that are created during

Callers 1

AddArrayMethod · 0.95

Calls 3

addElementSeparatorMethod · 0.95
AppendByteMethod · 0.80
MarshalLogArrayMethod · 0.65

Tested by

no test coverage detected