consume consumes n bytes of input and any subsequent whitespace.
(n int)
| 263 | |
| 264 | // consume consumes n bytes of input and any subsequent whitespace. |
| 265 | func (d *Decoder) consume(n int) { |
| 266 | d.in = d.in[n:] |
| 267 | for len(d.in) > 0 { |
| 268 | switch d.in[0] { |
| 269 | case ' ', '\n', '\r', '\t': |
| 270 | d.in = d.in[1:] |
| 271 | default: |
| 272 | return |
| 273 | } |
| 274 | } |
| 275 | } |
| 276 | |
| 277 | // isValueNext returns true if next type should be a JSON value: Null, |
| 278 | // Number, String or Bool. |
no outgoing calls
no test coverage detected