mirror of
https://github.com/zaerl/mojibake.git
synced 2026-11-30 16:48:26 +01:00
* Add a Go wrapper in src/go A cgo package, github.com/zaerl/mojibake/src/go, that compiles the C library as one translation unit with the Go code. The module lives at the repository root so that go get fetches the C sources with it. It covers normalization, locale-aware casing and caseless matching, BCP 47 tags, segmentation iterators, terminal width, encodings, bidi, character data and properties, filters, identifiers, emoji, collation, IDNA, confusables, and Hangul. Build tags leave out the optional features. The tests include the Unicode conformance files. Add make test-go, an example in examples/go, a Go CI job, and docs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Francesco Bigiarini <francesco.bigiarini@gmail.com> * Go: pass the character-name placeholder through Without the name data, the C library names every character with a placeholder such as "Codepoint U+00E9". The Go package dropped it and returned "". Return it instead, as the C++ wrapper and the Rust crate do, and document it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Francesco Bigiarini <francesco.bigiarini@gmail.com> --------- Signed-off-by: Francesco Bigiarini <francesco.bigiarini@gmail.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
6 lines
228 B
AMPL
6 lines
228 B
AMPL
// The Go module of the Mojibake library. It lives at the repository root so that `go get` fetches
|
|
// the C sources in src/ together with the Go package in src/go. See src/go/README.md.
|
|
module github.com/zaerl/mojibake
|
|
|
|
go 1.23
|