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

Function Float32s

array.go:69–71  ·  view source on GitHub ↗

Float32s constructs a field that carries a slice of floats.

(key string, nums []float32)

Source from the content-addressed store, hash-verified

67
68// Float32s constructs a field that carries a slice of floats.
69func Float32s(key string, nums []float32) Field {
70 return Array(key, float32s(nums))
71}
72
73// Ints constructs a field that carries a slice of integers.
74func Ints(key string, nums []int) Field {

Callers 2

TestFieldConstructorsFunction · 0.85
TestArrayWrappersFunction · 0.85

Calls 2

ArrayFunction · 0.85
float32sTypeAlias · 0.85

Tested by 2

TestFieldConstructorsFunction · 0.68
TestArrayWrappersFunction · 0.68