Uintp constructs a field that carries a *uint. The returned Field will safely and explicitly represent `nil` when appropriate.
(key string, val *uint)
| 240 | // Uintp constructs a field that carries a *uint. The returned Field will safely |
| 241 | // and explicitly represent `nil` when appropriate. |
| 242 | func 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. |
| 250 | func Uint64(key string, val uint64) Field { |