trie

package
v1.9.9 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2023 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(phrase, delimiter string) []string

func SplitByEmpty

func SplitByEmpty(phrase string) []string

Types

type Trie

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

func New

func New() Trie

Directories

Path Synopsis
internal
gen

Jump to

Keyboard shortcuts

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