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

Method AddFloat

decode_number_float.go:425–427  ·  view source on GitHub ↗

Add Values functions AddFloat decodes the JSON value within an object or an array to a *float64. If next key value overflows float64, an InvalidUnmarshalError error will be returned.

(v *float64)

Source from the content-addressed store, hash-verified

423// AddFloat decodes the JSON value within an object or an array to a *float64.
424// If next key value overflows float64, an InvalidUnmarshalError error will be returned.
425func (dec *Decoder) AddFloat(v *float64) error {
426 return dec.Float64(v)
427}
428
429// AddFloatNull decodes the JSON value within an object or an array to a *float64.
430// If next key value overflows float64, an InvalidUnmarshalError error will be returned.

Callers 4

UnmarshalJSONObjectMethod · 0.45
UnmarshalJSONObjectMethod · 0.45
UnmarshalJSONObjectMethod · 0.45
MarshalStreamMethod · 0.45

Calls 1

Float64Method · 0.95

Tested by 4

UnmarshalJSONObjectMethod · 0.36
UnmarshalJSONObjectMethod · 0.36
UnmarshalJSONObjectMethod · 0.36
MarshalStreamMethod · 0.36