trie

package
v1.5.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 10, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EmptyDelimiter     = ""
	SpaceDelimiter     = " "
	SlashDelimiter     = "/"
	BackSlashDelimiter = "\\"
)

Variables

This section is empty.

Functions

func SplitByDelimiter

func SplitByDelimiter(val string, delimiter string) []string

func SplitByEmpty

func SplitByEmpty(val string) []string

Types

type Trie

type Trie interface {
	Capacity() uint32
	String(delimiter string) string
	Insert(values []string)
	HasPrefix(values []string) bool
	Match(values []string) bool
	Delete(values []string)
	Prompt(prefix []string, delimiter string) (phrases []string)
	// contains filtered or unexported methods
}

func New

func New(fuzzy bool) Trie

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL