Int32p constructs a field that carries a *int32. The returned Field will safely and explicitly represent `nil` when appropriate.
(key string, val *int32)
| 184 | // Int32p constructs a field that carries a *int32. The returned Field will safely |
| 185 | // and explicitly represent `nil` when appropriate. |
| 186 | func 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. |
| 194 | func Int16(key string, val int16) Field { |
searching dependent graphs…