AddFloatKey adds a float64 to be encoded, must be used inside an object as it will encode a key
(key string, v float64)
| 75 | |
| 76 | // AddFloatKey adds a float64 to be encoded, must be used inside an object as it will encode a key |
| 77 | func (enc *Encoder) AddFloatKey(key string, v float64) { |
| 78 | enc.Float64Key(key, v) |
| 79 | } |
| 80 | |
| 81 | // AddFloatKeyOmitEmpty adds a float64 to be encoded and skips it if its value is 0. |
| 82 | // Must be used inside an object as it will encode a key |