mirror of
https://github.com/golang/go
synced 2024-11-24 23:07:56 -07:00
encoding/json: document buffering
Fixes #1955. R=golang-dev, gri CC=golang-dev https://golang.org/cl/5643058
This commit is contained in:
parent
467f8751f9
commit
49110eaa22
@ -19,6 +19,9 @@ type Decoder struct {
|
||||
}
|
||||
|
||||
// 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.
|
||||
func NewDecoder(r io.Reader) *Decoder {
|
||||
return &Decoder{r: r}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user