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

Function Int16p

field.go:200–205  ·  view source on GitHub ↗

Int16p constructs a field that carries a *int16. The returned Field will safely and explicitly represent `nil` when appropriate.

(key string, val *int16)

Source from the content-addressed store, hash-verified

198// Int16p constructs a field that carries a *int16. The returned Field will safely
199// and explicitly represent `nil` when appropriate.
200func Int16p(key string, val *int16) Field {
201 if val == nil {
202 return nilField(key)
203 }
204 return Int16(key, *val)
205}
206
207// Int8 constructs a field with the given key and value.
208func Int8(key string, val int8) Field {

Callers 1

TestFieldConstructorsFunction · 0.85

Calls 2

nilFieldFunction · 0.85
Int16Function · 0.85

Tested by 1

TestFieldConstructorsFunction · 0.68