MCPcopy Create free account
hub / github.com/francoispqt/gojay / AddFloat

Method AddFloat

encode_number_float.go:43–45  ·  view source on GitHub ↗

AddFloat adds a float64 to be encoded, must be used inside a slice or array encoding (does not encode a key)

(v float64)

Source from the content-addressed store, hash-verified

41
42// AddFloat adds a float64 to be encoded, must be used inside a slice or array encoding (does not encode a key)
43func (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).

Callers 1

AddInterfaceMethod · 0.95

Calls 1

Float64Method · 0.95

Tested by

no test coverage detected