pinyin

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2019 License: MIT Imports: 8 Imported by: 0

README

pinyin

Build Status codecov

golang实现中文汉字转拼音

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInitialize = errors.New("not yet initialized")
)

Functions

func New

func New(origin string) *pinyin

Types

type Mode

type Mode int
const (
	WithoutTone        Mode = iota + 1 // 默认模式,例如:guo
	Tone                               // 带声调的拼音 例如:guó
	InitialsInCapitals                 // 首字母大写不带声调,例如:Guo
)

Jump to

Keyboard shortcuts

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