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

Method AddFloat64

decode_number_float.go:438–440  ·  view source on GitHub ↗

AddFloat64 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

436// AddFloat64 decodes the JSON value within an object or an array to a *float64.
437// If next key value overflows float64, an InvalidUnmarshalError error will be returned.
438func (dec *Decoder) AddFloat64(v *float64) error {
439 return dec.Float64(v)
440}
441
442// AddFloat64Null decodes the JSON value within an object or an array to a *float64.
443// If next key value overflows float64, an InvalidUnmarshalError error will be returned.

Callers 2

TestEncoderFloat64Function · 0.45
TestDecoderFloat64FieldFunction · 0.45

Calls 1

Float64Method · 0.95

Tested by 2

TestEncoderFloat64Function · 0.36
TestDecoderFloat64FieldFunction · 0.36