package
Version:
v0.0.0-...-f6b5871
Opens a new window with list of versions in this module.
Published: Nov 27, 2024
License: BSD-3-Clause
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
¶
Trie is a struct used for efficient searching on sets of strings.
New returns a Trie instance.
func (t *Trie) Delete(strs []string, data interface{})
Delete removes the data from the trie.
func (t *Trie) Insert(strs []string, data interface{})
Insert inserts the data into the trie with the given string keys.
func (t *Trie) Search(strs []string) []interface{}
Search returns all inserted data which exactly matches the given string keys.
func (t *Trie) SearchSubset(strs []string) []interface{}
SearchSubset returns all inserted data which matches a subset of the given
string keys.
String returns a string representation of the Trie.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.