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

Function Strs

exp/zapfield/zapfield.go:44–46  ·  view source on GitHub ↗

Strs constructs a field that carries a slice of string-like values.

(k K, v V)

Source from the content-addressed store, hash-verified

42
43// Strs constructs a field that carries a slice of string-like values.
44func Strs[K ~string, V ~[]S, S ~string](k K, v V) zap.Field {
45 return zap.Array(string(k), stringArray[S](v))
46}

Callers 1

TestFieldConstructorsFunction · 0.85

Calls 1

ArrayFunction · 0.92

Tested by 1

TestFieldConstructorsFunction · 0.68