Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/fiam/gounidecode

Unicode transliterator for #golang
https://github.com/fiam/gounidecode

Last synced: 24 days ago
JSON representation

Unicode transliterator for #golang

Lists

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
}