Package: wnpp
Severity: wishlist
Owner: Luca Soler <luca.so...@proton.me>
X-Debbugs-CC: debian-de...@lists.debian.org, debian-go@lists.debian.org

* Package name    : golang-github-gosimple-unidecode
  Version         : 1.0.1-1
  Upstream Author : GoSimple
* URL             : https://github.com/gosimple/unidecode
* License         : Apache-2.0
  Programming Lang: Go
  Description     : Unicode transliterator in Golang - Replaces non-ASCII
characters with their ASCII approximations.

 unidecode
 .
 Go Reference (https://pkg.go.dev/github.com/gosimple/unidecode) Tests
 (https://github.com/gosimple/unidecode/actions/workflows/tests.yml)
 .
 Unicode transliterator in Golang - Replaces non-ASCII characters with
 their ASCII approximations.
 .
 Fork of (https://github.com/rainycape/unidecode)
 .
 Example
 .
   package main
 .
   import (
    "fmt"
 .
    "github.com/gosimple/unidecode"
   )
 .
   func main() {
    decoded := unidecode.Unidecode("Łódź")
    fmt.Println(decoded)
    // Output: Lodz
   }
 .
 Requests or bugs?
 .
 (https://github.com/gosimple/unidecode/issues)
 .
 Installation
 .
   go get -u github.com/gosimple/unidecode
 .
 Benchmark
 .
   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
 .
 Add new characters
 .
  1. Edit table.txt file.
  2. Rebuild table.go file:
       go run ./make_table.go

Indirect dependency of apptainer, needed to fix golang-github-gosimple-slug.
This package will be maintained within the Debian Go Packaging Team.

As this is my first ITP, I would appreciate any feedback if I have made any
mistakes. I have also requested access to the Salsa repository to push the 
package.

--
Luca

Reply via email to