README ¶ pinyin convert Simplified Chinese to pinyin in golang install go get github.com/axgle/pinyin example package main import ( "github.com/axgle/pinyin" ) func main() { println(pinyin.Convert("hello,世界!")) } License BSD Author axgle Expand ▾ Collapse ▴ Documentation ¶ Index ¶ func Code(s string) int func Convert(s string) string func UTF8ToGBK(s string) string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Code ¶ func Code(s string) int get chinese pinyin number code param s must be chinese character with utf8 encoding func Convert ¶ func Convert(s string) string convert chinese to pinyin func UTF8ToGBK ¶ func UTF8ToGBK(s string) string Types ¶ This section is empty. Source Files ¶ View all Source files pinyin.go table.go utf8.go Directories ¶ Show internal Expand all Path Synopsis example Click to show internal directories. Click to hide internal directories.