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

Function Int64p

field.go:172–177  ·  view source on GitHub ↗

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

(key string, val *int64)

Source from the content-addressed store, hash-verified

170// Int64p constructs a field that carries a *int64. The returned Field will safely
171// and explicitly represent `nil` when appropriate.
172func Int64p(key string, val *int64) Field {
173 if val == nil {
174 return nilField(key)
175 }
176 return Int64(key, *val)
177}
178
179// Int32 constructs a field with the given key and value.
180func Int32(key string, val int32) Field {

Callers 1

TestFieldConstructorsFunction · 0.85

Calls 2

nilFieldFunction · 0.85
Int64Function · 0.85

Tested by 1

TestFieldConstructorsFunction · 0.68