Versions in this module Expand all Collapse all v1 v1.0.3 Feb 6, 2020 Changes in this version + type Leafs []*PlainLeaf + func (slice Leafs) Len() int + func (slice Leafs) Less(i, j int) bool + func (slice Leafs) Swap(i, j int) + type PlainLeaf struct + Category string + Value string + Weight float64 + func (m *PlainLeaf) String() string + type Trie struct + func LoadFromFile(fname string) (tr *Trie, err error) + func New() *Trie + func (t *Trie) Add(val, cat string, w float64) + func (t *Trie) Find(prefix string) Leafs + func (t *Trie) FindFirstN(prefix string, n int) Leafs + func (t *Trie) SaveToFile(fname string) (err error)