NewDecoder returns a new decoder that reads from r. The decoder introduces its own buffering and may read data from r beyond the JSON values requested.
(r io.Reader)
| 33 | // The decoder introduces its own buffering and may |
| 34 | // read data from r beyond the JSON values requested. |
| 35 | func NewDecoder(r io.Reader) *Decoder { |
| 36 | return &Decoder{r: r} |
| 37 | } |
| 38 | |
| 39 | // UseNumber causes the Decoder to unmarshal a number into an interface{} as a |
| 40 | // Number instead of as a float64. |
no outgoing calls
no test coverage detected