mirror of https://github.com/golang/go.git
The documentation for TokenReader suggests that implementations of the interface may return a token and io.EOF together, indicating that it is the last token in the stream. This is similar to io.Reader. However, if you wrap such a TokenReader in a Decoder it complained about the EOF. A test was added to ensure this behavior on Decoder's. Change-Id: I9083c91d9626180d3bcf5c069a017050f3c7c4a8 Reviewed-on: https://go-review.googlesource.com/c/go/+/130556 Run-TryBot: Sam Whited <sam@samwhited.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> |
||
|---|---|---|
| .. | ||
| atom_test.go | ||
| example_marshaling_test.go | ||
| example_test.go | ||
| example_text_marshaling_test.go | ||
| marshal.go | ||
| marshal_test.go | ||
| read.go | ||
| read_test.go | ||
| typeinfo.go | ||
| xml.go | ||
| xml_test.go | ||