(b []byte)
| 266 | } |
| 267 | |
| 268 | func (d decoder) parseTrue(b []byte) ([]byte, []byte, Kind, error) { |
| 269 | if hasTruePrefix(b) { |
| 270 | return b[:4], b[4:], True, nil |
| 271 | } |
| 272 | if len(b) < 4 { |
| 273 | return nil, b[len(b):], Undefined, unexpectedEOF(b) |
| 274 | } |
| 275 | return nil, b, Undefined, syntaxError(b, "expected 'true' but found invalid token") |
| 276 | } |
| 277 | |
| 278 | func (d decoder) parseFalse(b []byte) ([]byte, []byte, Kind, error) { |
| 279 | if hasFalsePrefix(b) { |
no test coverage detected