Unicode transliterator for #golang
Clone or download
fiam Merge pull request #3 from SimonWaldherr/patch-1
fix go get path in README
Latest commit 8deddbd Jun 29, 2015
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
unidecode Fix typo in comment May 1, 2012
README.md fix go get path (always without protocol) Jun 29, 2015

README.md

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
}