Unicode transliterator in Golang - Replaces non-ASCII characters with their ASCII approximations.
Fork of https://github.com/rainycape/unidecode
package main
import (
"fmt"
"github.com/gosimple/unidecode"
)
func main() {
decoded := unidecode.Unidecode("Łódź")
fmt.Println(decoded)
// Output: Lodz
}
https://github.com/gosimple/unidecode/issues
go get -u github.com/gosimple/unidecode
go test -run=NONE -bench=. -benchmem -count=6 ./... > old.txt
# make changes
go test -run=NONE -bench=. -benchmem -count=6 ./... > new.txt
go install golang.org/x/perf/cmd/benchstat@latest
benchstat old.txt new.txt
-
Edit
table.txt
file. -
Rebuild
table.go
file:go run ./make_table.go