maxResults
untyped bigintmaxResults caps how many completions a single Render lists.
Value
(25 <untyped> bigint)
dictionary
[]stringdictionary is the demo corpus: gno/Go vocabulary, deliberately clustered on a few prefixes ("co", "gn", "re", "tr") so completions are fun to explore.
- OID
- 0787f3…8778:4
dictionary details
dict
*v0.Triedict is built once at init; the library keeps it sorted internally.
- OID
- 0787f3…8778:6
dict details
Render
func(path string) stringRender renders the autocomplete for gnoweb. Render("") / Render("/") -> the whole dictionary + usage Render("/<prefix>") -> every word completing <prefix>
- OID
- 0787f3…8778:775
Render details
parsePrefix
func(path string) stringparsePrefix extracts the prefix from a Render path like "/gno", keeping only the first segment. Returns "" for the empty/root path.
- OID
- 0787f3…8778:777
parsePrefix details
list
func(words []string) stringlist renders words as a Markdown bullet list.
- OID
- 0787f3…8778:778