resGNode

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: 2 Imported by: 0

Documentation

Index

Constants

View Source
const GroupBase = 1e5

Variables

This section is empty.

Functions

func CountRO

func CountRO(gn *ResGNode) (nodesNum int)

func ToJson

func ToJson(gn ResGNode) (string, error)

func ToJsonIndent

func ToJsonIndent(gn ResGNode) (string, error)

Types

type ResGNode

type ResGNode struct {
	ID       int64       `json:"id"`
	Label    string      `json:"label"`
	Disabled bool        `json:"disabled"`
	Children []*ResGNode `json:"children,omitempty"`
}

Group Node all-in-one struct for Vue front-end

func Copy

func Copy(gn *ResGNode) (ngn *ResGNode)

func LoadFromJson

func LoadFromJson(bJson []byte) (gn ResGNode, err error)

Jump to

Keyboard shortcuts

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