8000 GitHub - mozillazg/go-unidecode: ASCII transliterations of Unicode text.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

mozillazg/go-unidecode

Folders and files

< 8000 tr class="react-directory-row undefined" id="folder-row-9">
NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-unidecode

Build Status Coverage Status Go Report Card GoDoc

ASCII transliterations of Unicode text. Inspired by python-unidecode.

Installation

go get github.com/mozillazg/go-unidecode

Install CLI tool:

$ go install github.com/mozillazg/go-unidecode/cmd/unidecode@latest

$ unidecode 北京kožušček
Bei Jing kozuscek

Documentation

API documentation can be found here: https://godoc.org/github.com/mozillazg/go-unidecode

Usage

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
}
0