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

Method MarshalLogArray

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

Source from the content-addressed store, hash-verified

220type stringers[T fmt.Stringer] []T
221
222func (os stringers[T]) MarshalLogArray(arr zapcore.ArrayEncoder) error {
223 for _, o := range os {
224 arr.AppendString(o.String())
225 }
226 return nil
227}
228
229// Times constructs a field that carries a slice of time.Times.
230func Times(key string, ts []time.Time) Field {

Callers

nothing calls this directly

Calls 2

AppendStringMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected