material

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package material the Material of pinyin dick, it's `embed`.

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCommonRaw

func GetCommonRaw() []byte

GetCommonRaw get the raw of common list

func GetDickRaw

func GetDickRaw() []byte

GetDickRaw get the raw pinyin dick

func NewPinyin

func NewPinyin() pinyin.Pinyin

NewPinyin create Pinyin instance.

Example
var pinyin string
py := NewPinyin()
pinyin = py.GetPyToneAlpha(`古丞秋`)
fmt.Println(pinyin)
pinyin = py.GetPyTone(`中华人民共和国`)
fmt.Println(pinyin)
Output:

gu cheng qiu
zhōng huá rén mín gòng hé guó

Types

type CommonList

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

func NewCommonList

func NewCommonList() *CommonList

func (*CommonList) StrokesList

func (c *CommonList) StrokesList() []int

StrokesList get strokes(笔画) list

func (*CommonList) WordList

func (c *CommonList) WordList(strokes int) string

WordList get word list by strokes(笔画)

Jump to

Keyboard shortcuts

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