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

Method MarshalLogArray

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

Source from the content-addressed store, hash-verified

314type float64s []float64
315
316func (nums float64s) MarshalLogArray(arr zapcore.ArrayEncoder) error {
317 for i := range nums {
318 arr.AppendFloat64(nums[i])
319 }
320 return nil
321}
322
323type float32s []float32
324

Callers

nothing calls this directly

Calls 1

AppendFloat64Method · 0.65

Tested by

no test coverage detected