package
module
Version:
v0.5.0
Opens a new window with list of versions in this module.
Published: Jan 10, 2016
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Han yu pin yin package for Golang
Get Pinyin Of Simplified Chinese
Install
In you project root path just run go get github.com/struCoder/Go-pinyin
Test
just run go test
How to Use
import (
"fmt"
"github.com/struCoder/Go-pinyin"
)
func main() {
str := "中文字符-汉语拼音"
py := pinyin.NewPy()
fmt.Println(py.Convert(str))
}
Features
- convert han zi to pinyin
- get han zi initial
- deal with heteronym
License
MIT
Documentation
¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.