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

Method MarshalLogArray

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

Source from the content-addressed store, hash-verified

323type float32s []float32
324
325func (nums float32s) MarshalLogArray(arr zapcore.ArrayEncoder) error {
326 for i := range nums {
327 arr.AppendFloat32(nums[i])
328 }
329 return nil
330}
331
332type ints []int
333

Callers

nothing calls this directly

Calls 1

AppendFloat32Method · 0.65

Tested by

no test coverage detected