trie

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tree

type Tree[T any] struct {
	// contains filtered or unexported fields
}

func NewTree

func NewTree[T any](rootData T) *Tree[T]

func (*Tree[T]) Insert

func (t *Tree[T]) Insert(path string, data T) *Tree[T]

func (*Tree[T]) Search

func (t *Tree[T]) Search(path string) (result T)

func (*Tree[T]) ToMap

func (t *Tree[T]) ToMap() map[string]T

Jump to

Keyboard shortcuts

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