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)
| 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. |
| 476 | func (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. |