pinyin

package
v0.0.0-...-07c6388 Latest Latest
Warning

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

Go to latest
Published: May 10, 2015 License: Apache-2.0 Imports: 2 Imported by: 0

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

Documentation

Index

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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