Int16p constructs a field that carries a *int16. The returned Field will safely and explicitly represent `nil` when appropriate.
(key string, val *int16)
| 198 | // Int16p constructs a field that carries a *int16. The returned Field will safely |
| 199 | // and explicitly represent `nil` when appropriate. |
| 200 | func Int16p(key string, val *int16) Field { |
| 201 | if val == nil { |
| 202 | return nilField(key) |
| 203 | } |
| 204 | return Int16(key, *val) |
| 205 | } |
| 206 | |
| 207 | // Int8 constructs a field with the given key and value. |
| 208 | func Int8(key string, val int8) Field { |