AddFloat adds a float64 to be encoded, must be used inside a slice or array encoding (does not encode a key)
(v float64)
| 41 | |
| 42 | // AddFloat adds a float64 to be encoded, must be used inside a slice or array encoding (does not encode a key) |
| 43 | func (enc *Encoder) AddFloat(v float64) { |
| 44 | enc.Float64(v) |
| 45 | } |
| 46 | |
| 47 | // AddFloatOmitEmpty adds a float64 to be encoded and skips it if its value is 0, |
| 48 | // must be used inside a slice or array encoding (does not encode a key). |