Stringp constructs a field that carries a *string. The returned Field will safely and explicitly represent `nil` when appropriate.
(key string, val *string)
| 226 | // Stringp constructs a field that carries a *string. The returned Field will safely |
| 227 | // and explicitly represent `nil` when appropriate. |
| 228 | func Stringp(key string, val *string) Field { |
| 229 | if val == nil { |
| 230 | return nilField(key) |
| 231 | } |
| 232 | return String(key, *val) |
| 233 | } |
| 234 | |
| 235 | // Uint constructs a field with the given key and value. |
| 236 | func Uint(key string, val uint) Field { |