package
Version:
v1.0.9
Opens a new window with list of versions in this module.
Published: Jun 12, 2022
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
RuneTrie is a structure for searching strings (tokens)
New creates a new RuneTrie
Add adds tokens and their canonicals to the trie
SearchCanonical walks the trie to find a canonical matching the tokens, preferring longer (greedy) matches, i.e. 'ruby on rails' vs 'ruby'
String returns a representation of the trie as a Go source declaration. It can be large, use sparingly.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.