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

Function Int16s

array.go:89–91  ·  view source on GitHub ↗

Int16s constructs a field that carries a slice of integers.

(key string, nums []int16)

Source from the content-addressed store, hash-verified

87
88// Int16s constructs a field that carries a slice of integers.
89func Int16s(key string, nums []int16) Field {
90 return Array(key, int16s(nums))
91}
92
93// Int8s constructs a field that carries a slice of integers.
94func Int8s(key string, nums []int8) Field {

Callers 2

TestFieldConstructorsFunction · 0.85
TestArrayWrappersFunction · 0.85

Calls 2

ArrayFunction · 0.85
int16sTypeAlias · 0.85

Tested by 2

TestFieldConstructorsFunction · 0.68
TestArrayWrappersFunction · 0.68