func EncodeFloat(dst []byte, v float64, bits int) []byte
EncodeFloat encodes a float value as per the stdlib encoder for json and xml protocol This encodes a float value into dst while attempting to conform to ES6 ToString for Numbers
Based on encoding/json floatEncoder from the Go Standard Library https://golang.org/src/encoding/json/encode.go
Name | Synopsis |
---|---|
.. | |
httpbinding | |
json | |
xml | Package xml holds the XMl encoder utility. |