Help us shape the future of Go! Take the 2026 Go Developer Survey

pinyingo

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StyleNormal      = 1
	StyleTone        = 2
	StyleInitials    = 3
	StyleFirstLetter = 4
	UseSegment       = true
	NoSegment        = false
)

常量

Variables

This section is empty.

Functions

func Init

func Init(confDir string)

Init 用户指定多音词表和汉字库表文件

Types

type Py

type Py struct {
	// contains filtered or unexported fields
}

Py 拼音对象

func NewPy

func NewPy(style int, segment bool) *Py

NewPy 返回一个拼音配置对象

func (*Py) Convert

func (py *Py) Convert(strs string) []string

Convert 根据配置返回拼音字符串

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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