pinyingo

package module
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2016 License: MIT Imports: 2 Imported by: 0

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

Index

Constants

This section is empty.

Variables

View Source
var INITIALS []string

Functions

func NewPy

func NewPy() *options

Types

This section is empty.

Jump to

Keyboard shortcuts

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