https://github.com/fiam/Gounidecode
Unicode transliterator for #golang
https://github.com/fiam/Gounidecode
Last synced: 10 months ago
JSON representation
Unicode transliterator for #golang
- Host: GitHub
- URL: https://github.com/fiam/Gounidecode
- Owner: fiam
- Created: 2012-05-01T11:59:34.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2015-09-23T21:17:29.000Z (over 10 years ago)
- Last Synced: 2025-02-26T11:13:06.781Z (10 months ago)
- Language: Go
- Size: 369 KB
- Stars: 80
- Watchers: 6
- Forks: 21
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Unicode transliterator (also known as unidecode) for Go
=======================================================
Use the following command to install gounidecode
go get -u github.com/fiam/gounidecode/unidecode
Example usage
=============
package main
import (
"fmt"
"github.com/fiam/gounidecode/unidecode"
)
func main() {
fmt.Println(Unidecode("áéíóú")) // Will print aeiou
fmt.Println(Unidecode("\u5317\u4EB0")) // Will print Bei Jing
fmt.Println(Unidecode("Κνωσός")) // Will print Knosos
}