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

Function ByteStrings

array.go:44–46  ·  view source on GitHub ↗

ByteStrings constructs a field that carries a slice of []byte, each of which must be UTF-8 encoded text.

(key string, bss [][]byte)

Source from the content-addressed store, hash-verified

42// ByteStrings constructs a field that carries a slice of []byte, each of which
43// must be UTF-8 encoded text.
44func ByteStrings(key string, bss [][]byte) Field {
45 return Array(key, byteStringsArray(bss))
46}
47
48// Complex128s constructs a field that carries a slice of complex numbers.
49func Complex128s(key string, nums []complex128) Field {

Callers 1

TestArrayWrappersFunction · 0.85

Calls 2

ArrayFunction · 0.85
byteStringsArrayTypeAlias · 0.85

Tested by 1

TestArrayWrappersFunction · 0.68