path_trie

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiffPath

func DiffPath(left, right []string) ([]string, []string, []string)

Types

type Trie

type Trie struct {
	Separator string
	// contains filtered or unexported fields
}

func NewTrie

func NewTrie(separator string) *Trie

func (*Trie) Insert

func (t *Trie) Insert(target string)

func (*Trie) Search

func (t *Trie) Search(target string) bool

func (*Trie) SearchPrefix

func (t *Trie) SearchPrefix(prefix string) *Trie

Jump to

Keyboard shortcuts

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