Intp constructs a field that carries a *int. The returned Field will safely and explicitly represent `nil` when appropriate.
(key string, val *int)
| 156 | // Intp constructs a field that carries a *int. The returned Field will safely |
| 157 | // and explicitly represent `nil` when appropriate. |
| 158 | func Intp(key string, val *int) Field { |
| 159 | if val == nil { |
| 160 | return nilField(key) |
| 161 | } |
| 162 | return Int(key, *val) |
| 163 | } |
| 164 | |
| 165 | // Int64 constructs a field with the given key and value. |
| 166 | func Int64(key string, val int64) Field { |