Skip spaces if any
()
| 879 | |
| 880 | // Skip spaces if any |
| 881 | func (d *Decoder) space() { |
| 882 | for { |
| 883 | b, ok := d.getc() |
| 884 | if !ok { |
| 885 | return |
| 886 | } |
| 887 | switch b { |
| 888 | case ' ', '\r', '\n', '\t': |
| 889 | default: |
| 890 | d.ungetc(b) |
| 891 | return |
| 892 | } |
| 893 | } |
| 894 | } |
| 895 | |
| 896 | // Read a single byte. |
| 897 | // If there is no byte to read, return ok==false |