resGNodeTree

package
v0.0.0-...-cee649a Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Count

func Count(t *Tree)

func CountRO

func CountRO(t *Tree) (nodesNum int)

func SynchronizeNodesInfo

func SynchronizeNodesInfo(t *Tree, nodesMap map[int64]*resNode.Node) (err error)

func ToJson

func ToJson(t Tree) (string, error)

func ToJsonForVue

func ToJsonForVue(t Tree) (string, error)

func ToJsonIndent

func ToJsonIndent(t Tree) (string, error)

Types

type Tree

type Tree struct {
	Root     resGNode.ResGNode
	NodesNum int
}

func Copy

func Copy(t *Tree) (nt *Tree)

func Filtrate

func Filtrate(t *Tree, nodesMap map[int64]*resNode.Node, filter func(node resNode.Node) bool) (nt *Tree, err error)

func FiltrateMark

func FiltrateMark(t *Tree, nodesMap map[int64]*resNode.Node, filter func(node resNode.Node) bool) (nt *Tree, err error)

Filtrate the tree and mark all unusable node (Disabled=true)

func LoadFromJson

func LoadFromJson(bJson []byte) (t Tree, err error)

func LoadFromJsonFile

func LoadFromJsonFile(filename string) (t Tree, err error)

Jump to

Keyboard shortcuts

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