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"
)
funcmain() {
decoded:=unidecode.Unidecode("Łódź")
fmt.Println(decoded)
// Output: Lodz
}https://github.com/gosimple/unidecode/issues
go get -u github.com/gosimple/unidecodego 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.txtEdit
table.txtfile.Rebuild
table.gofile:gorun ./make_table.go