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

Struct sliceArrayEncoder

zapcore/memory_encoder.go:137–139  ·  view source on GitHub ↗

sliceArrayEncoder is an ArrayEncoder backed by a simple []interface{}. Like the MapObjectEncoder, it's not designed for production use.

Source from the content-addressed store, hash-verified

135// sliceArrayEncoder is an ArrayEncoder backed by a simple []interface{}. Like
136// the MapObjectEncoder, it's not designed for production use.
137type sliceArrayEncoder struct {
138 elems []interface{}
139}
140
141func (s *sliceArrayEncoder) AppendArray(v ArrayMarshaler) error {
142 enc := &sliceArrayEncoder{}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected