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

Function Int16

field.go:194–196  ·  view source on GitHub ↗

Int16 constructs a field with the given key and value.

(key string, val int16)

Source from the content-addressed store, hash-verified

192
193// Int16 constructs a field with the given key and value.
194func Int16(key string, val int16) Field {
195 return Field{Key: key, Type: zapcore.Int16Type, Integer: int64(val)}
196}
197
198// Int16p constructs a field that carries a *int16. The returned Field will safely
199// and explicitly represent `nil` when appropriate.

Callers 3

TestEqualsFunction · 0.92
TestFieldConstructorsFunction · 0.85
Int16pFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestEqualsFunction · 0.74
TestFieldConstructorsFunction · 0.68