summaryrefslogtreecommitdiff
path: root/decode.go
AgeCommit message (Collapse)Author
2023-01-30Avoid doing type switching in inner functionsLuke Shumaker
The CPU profiler tells me that the encoder is spending a lot of time on type switches.
2023-01-30decode: Tidy up DecodeObject and DecodeArrayLuke Shumaker
2023-01-30decode: Fix DecodeTypeError offsetsLuke Shumaker
2023-01-30decode: s/stack/structStack/Luke Shumaker
This should make the next commit less noisy.
2023-01-29Move the base64 decode to the internal packageLuke Shumaker
2023-01-29.golangci.yml: Turn on 'nakedret', fixLuke Shumaker
2023-01-29.golangci.yml: Turn on formatting linters 'gci' and 'gofumpt', fixLuke Shumaker
All formatting changes are made by ./tools/bin/golangci-lint run --fix ./...
2023-01-29Improve/fix documentation and commentsLuke Shumaker
2023-01-26Write documentationv0.2.0Luke Shumaker
2023-01-26Move the Parser to the internal packageLuke Shumaker
2023-01-25Delete things I don't want to documentLuke Shumaker
2022-08-21Add tests for the actual usability of the Decodable and Encodable interfacesLuke Shumaker
2022-08-21decode: Add DecodeObject and DecodeArray helper methodsLuke Shumaker
2022-08-21decode: Lean in to io.RuneScannerLuke Shumaker
So that it's easier to compose your own .DecodeJSON methods, since .DecodeJSON takes an io.RuneScanner.
2022-08-17Get the linter passing (even if it means ignoring borrowed files)Luke Shumaker
2022-08-17DecodeThenEOF: SimplifyLuke Shumaker
2022-08-17decode: Don't be greedy unless we're looking for EOFLuke Shumaker
2022-08-17Fix those now-failing error checksLuke Shumaker
2022-08-17Add tests for decode reading too farLuke Shumaker
2022-08-16Run the fuzzer a bitLuke Shumaker
2022-08-16Get borrowed_decode_test.go passingLuke Shumaker
2022-08-16Push nesting-depth checks down in to the parser [ci-skip]Luke Shumaker
2022-08-16wip: Reduce test differences [ci-skip]Luke Shumaker
- Handle UTF-16 surrogate pairs - Handle cycles in values - Handle cycles in types - Better errors - Handle case-folding of struct field names - Allow []byteTypeWithMethods - Fix struct field-order - Fix handling of interfaces storing pointers - Enforce a maximum decode depth - Validate struct tags
2022-08-15Create a compat/json compatibility libraryLuke Shumaker
2022-08-14decode: Switch over to ParserLuke Shumaker
2022-08-14decode: Switch from ReEncoder to ParserLuke Shumaker
2022-08-13set up as a separate repoLuke Shumaker