Int8p constructs a field that carries a *int8. The returned Field will safely and explicitly represent `nil` when appropriate.
(key string, val *int8)
| 212 | // Int8p constructs a field that carries a *int8. The returned Field will safely |
| 213 | // and explicitly represent `nil` when appropriate. |
| 214 | func Int8p(key string, val *int8) Field { |
| 215 | if val == nil { |
| 216 | return nilField(key) |
| 217 | } |
| 218 | return Int8(key, *val) |
| 219 | } |
| 220 | |
| 221 | // String constructs a field with the given key and value. |
| 222 | func String(key string, val string) Field { |