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

Method MarshalLogArray

array.go:136–143  ·  view source on GitHub ↗
(arr zapcore.ArrayEncoder)

Source from the content-addressed store, hash-verified

134type objects[T zapcore.ObjectMarshaler] []T
135
136func (os objects[T]) MarshalLogArray(arr zapcore.ArrayEncoder) error {
137 for _, o := range os {
138 if err := arr.AppendObject(o); err != nil {
139 return err
140 }
141 }
142 return nil
143}
144
145// ObjectMarshalerPtr is a constraint that specifies that the given type
146// implements zapcore.ObjectMarshaler on a pointer receiver.

Callers

nothing calls this directly

Calls 1

AppendObjectMethod · 0.65

Tested by

no test coverage detected