radix

package
v0.0.0-...-b1ec6f3 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Radix

type Radix struct {
	// contains filtered or unexported fields
}

func NewRadix

func NewRadix() *Radix

func (*Radix) Delete

func (r *Radix) Delete(key string)

func (*Radix) Find

func (r *Radix) Find(key string) (any, bool)

func (*Radix) FindAll

func (r *Radix) FindAll(prefix string) []any

func (*Radix) GetAll

func (r *Radix) GetAll() []any

func (*Radix) GetFirst

func (r *Radix) GetFirst() (string, any, bool)

func (*Radix) GetLast

func (r *Radix) GetLast() (string, any, bool)

func (*Radix) GetNext

func (r *Radix) GetNext(key string) (string, any, bool)

GetNext finds the next node after the node with the given key.

func (*Radix) Insert

func (r *Radix) Insert(key string, value any)

Jump to

Keyboard shortcuts

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