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

Function Ints

array.go:74–76  ·  view source on GitHub ↗

Ints constructs a field that carries a slice of integers.

(key string, nums []int)

Source from the content-addressed store, hash-verified

72
73// Ints constructs a field that carries a slice of integers.
74func Ints(key string, nums []int) Field {
75 return Array(key, ints(nums))
76}
77
78// Int64s constructs a field that carries a slice of integers.
79func Int64s(key string, nums []int64) Field {

Callers 4

TestEqualsFunction · 0.92
fakeFieldsFunction · 0.92
TestFieldConstructorsFunction · 0.85
TestArrayWrappersFunction · 0.85

Calls 2

ArrayFunction · 0.85
intsTypeAlias · 0.85

Tested by 4

TestEqualsFunction · 0.74
fakeFieldsFunction · 0.74
TestFieldConstructorsFunction · 0.68
TestArrayWrappersFunction · 0.68