summaryrefslogtreecommitdiff
path: root/internal
AgeCommit message (Collapse)Author
2023-02-25jsonparse: Don't show raw bytes as UnicodeLuke Shumaker
2023-02-25jsonparse: Define an InvalidCharacterError type instead of using fmt.ErrorfLuke Shumaker
2023-02-25jsonparse: Reword error messages to match encoding/jsonLuke Shumaker
2023-02-19compat/json: Correctly handle syntax-error-in-decodeLuke Shumaker
2023-02-18reencode: Don't normalize the capitalization of \uXXXX hex escapesLuke Shumaker
2023-02-18compat/json: Don't do actual JSON parsing in HTMLEscapeLuke Shumaker
2023-02-18encode, reencode: Fix handling of invalid UTF-8Luke Shumaker
2023-02-18jsonparse: Have PushReadBarrier reject trailing whitespaceLuke Shumaker
2023-02-18decode_scan, jsonparse: Rework the behavior to make a bit more senseLuke Shumaker
- decode_scan: Don't have .Reset() re-play an erroring rune - decode_Scan: Have RuneTypeEOF always be zero-width - jsonparse: Don't replace syntax errors with RuneTypeEOF if there's no barrier
2023-02-18jsonparse: Fix a mistake in the commentsLuke Shumaker
2023-02-18jsonparse: Remove barrier.closed, as it is always falseLuke Shumaker
2023-02-18fastio: NewAllWriter: Add a special case for io.DiscardLuke Shumaker
2023-02-16Avoid io.Writer causing buffers to escape to the heapLuke Shumaker
2023-02-16reencode: Don't bother tracking the number of bytes writtenLuke Shumaker
2023-02-16Clean up the hex handlingLuke Shumaker
2023-02-16Move string-encoding to an internal/jsonstring packageLuke Shumaker
2023-02-10tree-wide: Audit panic error messagesLuke Shumaker
These shouldn't happen, but if they do, then let's make it easier to debug.
2023-02-10Use go:linkname instead of the awful internal/jsontest packageLuke Shumaker
2023-02-10tree-wide: Update various references from Go 1.18 to Go 1.20Luke Shumaker
2023-02-07compat: Enable the cache benchmarkLuke Shumaker
This should have been done back in 8aa12d3 (struct.go: Cache structIndexes, 2023-01-26)
2023-02-07Move struct-handling to internal/jsonstructLuke Shumaker
2023-02-07internal: Split in to sub-packagesLuke Shumaker
2023-02-07fixup! Move the base64 decode to the internal packageLuke Shumaker
2023-01-30Invent "barriers" instead of nesting parsersLuke Shumaker
2023-01-30reencode: Rethink CompactIfUnder to have linear memoryLuke Shumaker
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-30parse: Simplify the stack states for arraysLuke Shumaker
We already have a wildcard, no need to invent a new state.
2023-01-29Move things between filesLuke Shumaker
2023-01-29parse: Add an example of how the stack works for arrays, add testsLuke Shumaker
2023-01-29parse: Add a runeTypeAny instead of overloading RuneTypeErrorLuke Shumaker
It was confusing.
2023-01-29HexToInt: No need to be genericLuke Shumaker
It's only used with a rune.
2023-01-29Move the base64 decode to the internal packageLuke Shumaker
2023-01-29.golangci.yml: Turn on 'dupl', 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-29parse: Change the StringBeg/StringEnd symbolsLuke Shumaker
IDK if my eyes are worse, or something changed with my font stack, but I can no longer visually distinguish “ and ” so use " and » instead. Plus » psycologically registers as "kinda special", so it's less confusing to see as an object-thing in a stack.
2023-01-26Write documentationv0.2.0Luke Shumaker
2023-01-26Move the Parser to the internal packageLuke Shumaker
2022-09-19Give every .go file an SPDX-License-IdentifierLuke Shumaker
2022-08-16Indicate why each of the lines in borrowed files were MODIFIEDLuke Shumaker
2022-08-15Create a compat/json compatibility libraryLuke Shumaker