treelib

package
v1.6.4 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenTree

func GenTree(root INode, list Nodes) error

Types

type INode

type INode interface {
	// node id
	GetId() int64
	// node pid
	GetParentId() int64
	// node seq
	GetSeq() int64
	// set node children
	SetChildren(n Nodes)
}

type Nodes

type Nodes []INode

func (Nodes) Len

func (nodes Nodes) Len() int

func (Nodes) Less

func (nodes Nodes) Less(i, j int) bool

func (Nodes) Swap

func (nodes Nodes) Swap(i, j int)

Jump to

Keyboard shortcuts

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