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

Function Uintp

field.go:242–247  ·  view source on GitHub ↗

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

(key string, val *uint)

Source from the content-addressed store, hash-verified

240// Uintp constructs a field that carries a *uint. The returned Field will safely
241// and explicitly represent `nil` when appropriate.
242func Uintp(key string, val *uint) Field {
243 if val == nil {
244 return nilField(key)
245 }
246 return Uint(key, *val)
247}
248
249// Uint64 constructs a field with the given key and value.
250func Uint64(key string, val uint64) Field {

Callers 1

TestFieldConstructorsFunction · 0.85

Calls 2

nilFieldFunction · 0.85
UintFunction · 0.85

Tested by 1

TestFieldConstructorsFunction · 0.68