| Age | Commit message (Collapse) | Author |
|
|
|
The asciiset.Set type is exported as ascii.Set.
|
|
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.
|
|
This is to prevent import cycle later when we use lib/test in bytes.
|
|
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.
|
|
|
|
This way, one does not need to install ciigo binary, only require Go
tools.
|