1
0
mirror of https://github.com/golang/go synced 2024-11-25 01:27: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:
Russ Cox 2012-02-08 13:48:03 -05:00
parent 467f8751f9
commit 49110eaa22

View File

@ -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}
}