trie

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DomainTree

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

func NewDomainTree

func NewDomainTree[T any]() *DomainTree[T]

func (*DomainTree[T]) Add

func (t *DomainTree[T]) Add(k string, value T)

func (*DomainTree[T]) Database

func (tree *DomainTree[T]) Database() iter.Seq[struct {
	Value  T
	Domain string
}]

func (*DomainTree[T]) Lookup

func (t *DomainTree[T]) Lookup(k string) (T, bool)

func (*DomainTree[T]) Print

func (t *DomainTree[T]) Print()

func (*DomainTree[T]) Remove

func (t *DomainTree[T]) Remove(k string) bool

func (*DomainTree[T]) Reset

func (t *DomainTree[T]) Reset()

Jump to

Keyboard shortcuts

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