Must read a single byte. If there is no byte to read, set d.err to SyntaxError("unexpected EOF") and return ok==false
()
| 928 | // set d.err to SyntaxError("unexpected EOF") |
| 929 | // and return ok==false |
| 930 | func (d *Decoder) mustgetc() (b byte, ok bool) { |
| 931 | if b, ok = d.getc(); !ok { |
| 932 | if d.err == io.EOF { |
| 933 | d.err = d.syntaxError("unexpected EOF") |
| 934 | } |
| 935 | } |
| 936 | return |
| 937 | } |
| 938 | |
| 939 | // Unread a single byte. |
| 940 | func (d *Decoder) ungetc(b byte) { |