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

Function Int32p

field.go:186–191  ·  view source on GitHub ↗

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

(key string, val *int32)

Source from the content-addressed store, hash-verified

184// Int32p constructs a field that carries a *int32. The returned Field will safely
185// and explicitly represent `nil` when appropriate.
186func Int32p(key string, val *int32) Field {
187 if val == nil {
188 return nilField(key)
189 }
190 return Int32(key, *val)
191}
192
193// Int16 constructs a field with the given key and value.
194func Int16(key string, val int16) Field {

Callers 1

TestFieldConstructorsFunction · 0.85

Calls 2

nilFieldFunction · 0.85
Int32Function · 0.85

Tested by 1

TestFieldConstructorsFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…