(b []byte)
| 276 | } |
| 277 | |
| 278 | func (d decoder) parseFalse(b []byte) ([]byte, []byte, Kind, error) { |
| 279 | if hasFalsePrefix(b) { |
| 280 | return b[:5], b[5:], False, nil |
| 281 | } |
| 282 | if len(b) < 5 { |
| 283 | return nil, b[len(b):], Undefined, unexpectedEOF(b) |
| 284 | } |
| 285 | return nil, b, Undefined, syntaxError(b, "expected 'false' but found invalid token") |
| 286 | } |
| 287 | |
| 288 | func (d decoder) parseNumber(b []byte) (v, r []byte, kind Kind, err error) { |
| 289 | if len(b) == 0 { |
no test coverage detected