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

Method Float64

decode_number_float.go:476–483  ·  view source on GitHub ↗

Float64 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

474// Float64 decodes the JSON value within an object or an array to a *float64.
475// If next key value overflows float64, an InvalidUnmarshalError error will be returned.
476func (dec *Decoder) Float64(v *float64) error {
477 err := dec.decodeFloat64(v)
478 if err != nil {
479 return err
480 }
481 dec.called |= 1
482 return nil
483}
484
485// Float64Null decodes the JSON value within an object or an array to a *float64.
486// If next key value overflows float64, an InvalidUnmarshalError error will be returned.

Callers 13

SliceFloat64Method · 0.95
AddFloatMethod · 0.95
AddFloat64Method · 0.95
FloatMethod · 0.95
TestEncoderFloat64Function · 0.45
UnmarshalJSONArrayMethod · 0.45
MarshalJSONArrayMethod · 0.45
UnmarshalJSONObjectMethod · 0.45
UnmarshalJSONObjectMethod · 0.45
UnmarshalJSONArrayMethod · 0.45
MarshalJSONArrayMethod · 0.45
UnmarshalJSONObjectMethod · 0.45

Calls 1

decodeFloat64Method · 0.95

Tested by 1

TestEncoderFloat64Function · 0.36