Versions in this module Expand all Collapse all v0 v0.0.1 Mar 22, 2023 Changes in this version type Node + func (n *Node) SetValue(value interface{}) type Trie + func (t *Trie) Walk(key []string, walker WalkFunc) error + type WalkFunc func(key []string, node *Node) error v0.0.0 Jun 12, 2022 Changes in this version + const RootKeyPart + func WithEditOps() func(*SearchOptions) + func WithExactKey() func(*SearchOptions) + func WithMaxEditDistance(maxDistance int) func(*SearchOptions) + func WithMaxResults(maxResults int) func(*SearchOptions) + func WithTopKLeastEdited() func(*SearchOptions) + type EditOp struct + KeyPart string + ReplaceWith string + Type EditOpType + type EditOpType int + const EditOpTypeDelete + const EditOpTypeInsert + const EditOpTypeNoEdit + const EditOpTypeReplace + type Node struct + func (n *Node) ChildNodes() []*Node + func (n *Node) Children() []tree.Node + func (n *Node) Data() interface{} + func (n *Node) IsTerminal() bool + func (n *Node) KeyPart() string + func (n *Node) Print() + func (n *Node) Sprint() string + func (n *Node) Value() interface{} + type SearchOptions struct + type SearchResult struct + EditDistance int + EditOps []*EditOp + Key []string + Value interface{} + type SearchResults struct + Results []*SearchResult + type Trie struct + func New() *Trie + func (t *Trie) Delete(key []string) (value interface{}, existed bool) + func (t *Trie) Put(key []string, value interface{}) (existed bool) + func (t *Trie) Root() *Node + func (t *Trie) Search(key []string, options ...func(*SearchOptions)) *SearchResults