Float64p constructs a field that carries a *float64. The returned Field will safely and explicitly represent `nil` when appropriate.
(key string, val *float64)
| 126 | // Float64p constructs a field that carries a *float64. The returned Field will safely |
| 127 | // and explicitly represent `nil` when appropriate. |
| 128 | func Float64p(key string, val *float64) Field { |
| 129 | if val == nil { |
| 130 | return nilField(key) |
| 131 | } |
| 132 | return Float64(key, *val) |
| 133 | } |
| 134 | |
| 135 | // Float32 constructs a field that carries a float32. The way the |
| 136 | // floating-point value is represented is encoder-dependent, so marshaling is |