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

Method AddArray

zapcore/encoder.go:366–366  ·  zapcore/encoder.go::ObjectEncoder.AddArray

Logging-specific marshalers.

(key string, marshaler ArrayMarshaler)

Source from the content-addressed store, hash-verified

364type ObjectEncoder interface {
365 // Logging-specific marshalers.
366 AddArray(key string, marshaler ArrayMarshaler) error
367 AddObject(key string, marshaler ObjectMarshaler) error
368
369 // Built-in types.

Callers 12

AddArrayMethod · 0.65
TestJSONEncoderArraysFunction · 0.65
MarshalLogObjectMethod · 0.65
TestMapObjectEncoderAddFunction · 0.65
BenchmarkZapJSONFunction · 0.65
encodeErrorFunction · 0.65
AddArrayMethod · 0.65
TestEncoderConfigurationFunction · 0.65
AddToMethod · 0.65

Implementers 2

jsonEncoderzapcore/json_encoder.go
MapObjectEncoderzapcore/memory_encoder.go

Calls

no outgoing calls

Tested by 10

AddArrayMethod · 0.52
TestJSONEncoderArraysFunction · 0.52
MarshalLogObjectMethod · 0.52
TestMapObjectEncoderAddFunction · 0.52
BenchmarkZapJSONFunction · 0.52
AddArrayMethod · 0.52
TestEncoderConfigurationFunction · 0.52