Categorygithub.com/hscells/go-unidecode
modulepackage
0.1.0
Repository: https://github.com/hscells/go-unidecode.git
Documentation: pkg.go.dev

# README

go-unidecode

Build Status Coverage Status GoDoc

ASCII transliterations of Unicode text.

Installation

go get -u github.com/mozillazg/go-unidecode

Install CLI tool:

go get -u github.com/mozillazg/go-unidecode/unidecode
$ unidecode 北京
Bei Jing 

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
}

# Packages

No description provided by the author
No description provided by the author

# Functions

Unidecode implements transliterate Unicode text into plain 7-bit ASCII.
Version return version.