Float32p constructs a field that carries a *float32. The returned Field will safely and explicitly represent `nil` when appropriate.
(key string, val *float32)
| 142 | // Float32p constructs a field that carries a *float32. The returned Field will safely |
| 143 | // and explicitly represent `nil` when appropriate. |
| 144 | func Float32p(key string, val *float32) Field { |
| 145 | if val == nil { |
| 146 | return nilField(key) |
| 147 | } |
| 148 | return Float32(key, *val) |
| 149 | } |
| 150 | |
| 151 | // Int constructs a field with the given key and value. |
| 152 | func Int(key string, val int) Field { |