pathTree

package
v0.0.0-...-8579d84 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node struct {
	PathAddr []string
	Son      map[string]*Node
	Count    int
}

type Tree

type Tree struct {
	Root *Node
}

func MakeTree

func MakeTree() *Tree

func MakeTreeFromBytes

func MakeTreeFromBytes(bs []byte) (*Tree, error)

func (*Tree) Delete

func (tr *Tree) Delete(pathAddr []string) int

func (*Tree) Insert

func (tr *Tree) Insert(pathAddr []string) int

func (*Tree) ToBytes

func (tr *Tree) ToBytes() []byte

Jump to

Keyboard shortcuts

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