update port
This commit is contained in:
60
vendor/github.com/mozillazg/go-unidecode/README.md
generated
vendored
Normal file
60
vendor/github.com/mozillazg/go-unidecode/README.md
generated
vendored
Normal file
@@ -0,0 +1,60 @@
|
||||
go-unidecode
|
||||
==============
|
||||
|
||||
[](https://travis-ci.org/mozillazg/go-unidecode)
|
||||
[](https://coveralls.io/r/mozillazg/go-unidecode?branch=master)
|
||||
[](https://goreportcard.com/report/github.com/mozillazg/go-unidecode)
|
||||
[](https://godoc.org/github.com/mozillazg/go-unidecode)
|
||||
|
||||
ASCII transliterations of Unicode text. Inspired by [python-unidecode](https://github.com/avian2/unidecode).
|
||||
|
||||
|
||||
Installation
|
||||
------------
|
||||
|
||||
```
|
||||
go get -u github.com/mozillazg/go-unidecode
|
||||
```
|
||||
|
||||
Install CLI tool:
|
||||
|
||||
```
|
||||
$ go get -u github.com/mozillazg/go-unidecode/unidecode
|
||||
|
||||
$ unidecode 北京kožušček
|
||||
Bei Jing kozuscek
|
||||
```
|
||||
|
||||
|
||||
Documentation
|
||||
--------------
|
||||
|
||||
API documentation can be found here:
|
||||
https://godoc.org/github.com/mozillazg/go-unidecode
|
||||
|
||||
|
||||
Usage
|
||||
------
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/mozillazg/go-unidecode"
|
||||
)
|
||||
|
||||
func main() {
|
||||
s := "abc"
|
||||
fmt.Println(unidecode.Unidecode(s))
|
||||
// Output: abc
|
||||
|
||||
s = "北京"
|
||||
fmt.Println(unidecode.Unidecode(s))
|
||||
// Output: Bei Jing
|
||||
|
||||
s = "kožušček"
|
||||
fmt.Println(unidecode.Unidecode(s))
|
||||
// Output: kozuscek
|
||||
}
|
||||
```
|
||||
Reference in New Issue
Block a user