aboutsummaryrefslogtreecommitdiff
path: root/internal
AgeCommit message (Collapse)Author
2026-01-03all: use SPDX license header formatShulhan
2023-06-18all: move internal/asciiset to asciiShulhan
The asciiset.Set type is exported as ascii.Set.
2023-06-06internal: add package asciisetWu Tingfeng
The package asciiset add new type ASCIISet, a bitmap to represent list of ASCII characters for faster lookup. ASCIISet is a 36-byte value, where each bit in the first 32-bytes represents the presence of a given ASCII character in the set. The remaining 4-bytes is a counter for the number of ASCII characters in the set. The 128-bits of the first 16 bytes, starting with the least-significant bit of the lowest word to the most-significant bit of the highest word, map to the full range of all 128 ASCII characters. The 128-bits of the next 16 bytes will be zeroed, ensuring that any non-ASCII character will be reported as not in the set.
2023-04-03lib/bytes: copy TokenFind to internal/bytes#TokenFindShulhan
This is to prevent import cycle later when we use lib/test in bytes.
2021-02-21all: use the ciigo binary instead of library to generate docsShulhan
Previously, we use the ciigo as library to convert and server the internal documentation. This cause circular dependencies in go.mod where ciigo depends on share module and share module depends on ciigo. There is nothing wrong with that and everything seems working fine, until we need to use "replace" to test the changes on share module from ciigo module. This changes remove the use of ciigo library through internal/cmd/docs-serve and internal/cmd/docs and replace them by calling the ciigo binary directly.
2021-01-10go.mod: update to latest ciigo versionShulhan
2020-12-06all: replace the tasks to serve and generate docs using ciigo as libraryShulhan
This way, one does not need to install ciigo binary, only require Go tools.