(n float32)
| 35 | } |
| 36 | |
| 37 | func (enc *Encoder) encodeFloat32(n float32) ([]byte, error) { |
| 38 | enc.buf = strconv.AppendFloat(enc.buf, float64(n), 'f', -1, 32) |
| 39 | return enc.buf, nil |
| 40 | } |
| 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) { |
no outgoing calls
no test coverage detected