container

package
v0.0.0-...-b201049 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2022 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 RadixNode

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

RadixNode is a radix node.

func NewRootNode

func NewRootNode() *RadixNode

NewRootNode returns a new *RadixNode.

func (*RadixNode) Find

func (self *RadixNode) Find(parts []string) *RadixNode

Find searchs radix node according to parts

func (*RadixNode) GetPath

func (self *RadixNode) GetPath() string

GetPath returns the path value.

func (*RadixNode) Insert

func (self *RadixNode) Insert(parts []string)

Insert adds new node to radix tree.

func (*RadixNode) String

func (self *RadixNode) String() string

String returns formatted string of a node's data.

func (*RadixNode) Travel

func (self *RadixNode) Travel(list *([]*RadixNode))

Travel returns a slice contains all nodes.

Jump to

Keyboard shortcuts

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