1
0
mirror of https://github.com/golang/go synced 2024-10-02 20:41:21 -06:00

encoding/xml: document NewDecoder buffering

Fixes #7225

LGTM=r
R=golang-codereviews, r
CC=golang-codereviews, rsc
https://golang.org/cl/88710043
This commit is contained in:
Brad Fitzpatrick 2014-04-16 17:16:08 -07:00
parent 1f40b841b3
commit 877e0a135f

View File

@ -200,6 +200,8 @@ type Decoder struct {
}
// NewDecoder creates a new XML parser reading from r.
// If r does not implement io.ByteReader, NewDecoder will
// do its own buffering.
func NewDecoder(r io.Reader) *Decoder {
d := &Decoder{
ns: make(map[string]string),