radix

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: Apache-2.0 Imports: 5 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[V any] struct {
	// contains filtered or unexported fields
}

头节点

func (*Radix[V]) Delete

func (r *Radix[V]) Delete(k string)

删除

func (*Radix[V]) Get

func (r *Radix[V]) Get(k string) (v V)

获取

func (*Radix[V]) GetWithBool

func (r *Radix[V]) GetWithBool(k string) (v V, found bool)

获取返回bool

func (*Radix[V]) HasPrefix

func (r *Radix[V]) HasPrefix(k string) (ok bool)

是否有这个前缀串

func (*Radix[V]) Len

func (r *Radix[V]) Len() int

返回长度

func (*Radix[V]) SetWithPrev

func (r *Radix[V]) SetWithPrev(k string, v V) (prev V, replaced bool)

设置

Jump to

Keyboard shortcuts

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