pull/330/head
Darien Raymond 8 years ago
parent 4e3ed19308
commit 09c0fa558a
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

@ -20,11 +20,13 @@ const (
StateMultilineCommentStar StateMultilineCommentStar
) )
// Reader is a JSON reader which allows comments.
type Reader struct { type Reader struct {
io.Reader io.Reader
state State state State
} }
// Read implements io.Reader.Read().
func (v *Reader) Read(b []byte) (int, error) { func (v *Reader) Read(b []byte) (int, error) {
n, err := v.Reader.Read(b) n, err := v.Reader.Read(b)
if err != nil { if err != nil {

Loading…
Cancel
Save