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

Function Float64s

array.go:64–66  ·  view source on GitHub ↗

Float64s constructs a field that carries a slice of floats.

(key string, nums []float64)

Source from the content-addressed store, hash-verified

62
63// Float64s constructs a field that carries a slice of floats.
64func Float64s(key string, nums []float64) Field {
65 return Array(key, float64s(nums))
66}
67
68// Float32s constructs a field that carries a slice of floats.
69func Float32s(key string, nums []float32) Field {

Callers 2

TestFieldConstructorsFunction · 0.85
TestArrayWrappersFunction · 0.85

Calls 2

ArrayFunction · 0.85
float64sTypeAlias · 0.85

Tested by 2

TestFieldConstructorsFunction · 0.68
TestArrayWrappersFunction · 0.68