Versions in this module Expand all Collapse all v0 v0.2.0 Nov 10, 2020 Changes in this version + type MatchResult struct + Level int + Word string + type Node struct + Code int + Depth int + End bool + Left int + Right int + type XTrie struct + Base []int + Check []int + DictFile string + Fmd5 string + Keymap map[string]int + Keys [][]rune + Size int + StoreFile string + func (x *XTrie) DictAdd(key string, level int) + func (x *XTrie) DictRead() (bool, error) + func (x *XTrie) DictRemove(key string) error + func (x *XTrie) Fuzzy(key string, limit int) ([]MatchResult, error) + func (x *XTrie) InitHandle(storeFile string, dictFile string) + func (x *XTrie) Insert(key string, level int) error + func (x *XTrie) Load(path string) error + func (x *XTrie) Match(key string, forceBack bool) (int, int, error) + func (x *XTrie) Prefix(pre string, limit int) ([]MatchResult, error) + func (x *XTrie) Remove(key string) error + func (x *XTrie) Search(key string) []MatchResult + func (x *XTrie) Store(path string) error + func (x *XTrie) Suffix(key string, limit int) ([]MatchResult, error)