godecode2

package module
v0.0.0-...-13d2899 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 3, 2014 License: MIT Imports: 2 Imported by: 0

README

GoDecode2

Build Status

ASCII transliterations of Unicode text for go lang.

How to Use

Install
go get github.com/xuender/godecode2
Decode
import (
    "fmt"
    gd "github.com/xuender/godecode2"
)
fmt.Println(gd.Decode("南无阿弥陀佛"))
Nan Wu A Mi Tuo Fo

fmt.Println(gd.Decode("一条会走路的鱼"));
Yi Tiao Hui Zou Lu De Yu

fmt.Println(gd.Decode("あみだにょらい"));
amidaniyorai
Initials
fmt.Println(gd.Initials("南无阿弥陀佛"));
NWAMTF

fmt.Println(gd.Initials("不怨人就是成佛的大道根"));
BYRJSCFDDDG

fmt.Println(gd.Initials("Κνωσός"));
K

Reference

GoDecode

Unidecode for Java

Unidecode for Python

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(str string) string

Transliterate an Unicode object into an ASCII string.

func Initials

func Initials(str string) string

Transliterate Unicode string to a initials.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL