Versions in this module Expand all Collapse all v1 v1.0.2 Jan 3, 2024 Changes in this version + const LineEnding + const MaxLD + const MaxResults + const URL + func ConvertSymbols(s string) string + func Download() (io.ReadCloser, error) + func FixSymbolSpaces(s string) string + func IsHanzi(s string) bool + func PinyinPlaintext(s string) string + func PinyinToneNums(s string) string + func PinyinTones(s string) string + func StripDigits(s string) string + func StripTones(s string) string + type Dict struct + func Load(filename string) (*Dict, error) + func New() *Dict + func Parse(r io.Reader) (*Dict, error) + func (d *Dict) DefaultFilename() string + func (d *Dict) Err() error + func (d *Dict) GetAllByHanzi(s string) []*Entry + func (d *Dict) GetByHanzi(s string) *Entry + func (d *Dict) GetByMeaning(s string) []*Entry + func (d *Dict) GetByPinyin(s string) []*Entry + func (d *Dict) HanziToPinyin(s string) string + func (d *Dict) Metadata() Metadata + func (d *Dict) Save(filename string) error + type Entry struct + Meanings []string + Pinyin string + Simplified string + Traditional string + func (e *Entry) Marshal() string + func (e *Entry) Unmarshal(s string) error + type Metadata struct + Charset string + Entries int + Format string + License string + Publisher string + Subversion int + Timestamp time.Time + Version int