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

Method MarshalLogArray

array.go:307–312  ·  array.go::durations.MarshalLogArray
(arr zapcore.ArrayEncoder)

Source from the content-addressed store, hash-verified

305type durations []time.Duration
306
307func (ds durations) MarshalLogArray(arr zapcore.ArrayEncoder) error {
308 for i := range ds {
309 arr.AppendDuration(ds[i])
310 }
311 return nil
312}
313
314type float64s []float64
315

Callers

nothing calls this directly

Calls 1

AppendDurationMethod · 0.65

Tested by

no test coverage detected