Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Formatter ¶
type Formatter interface { String() string // contains filtered or unexported methods }
Formatter provides all functions needed to
type Label ¶
type Label struct {
// contains filtered or unexported fields
}
Label represents all info needed to print a nice node label
type Node ¶
type Node interface { // Label contains additional info for nicer output. Label() Label // Path is the JSONPath of the node (http://goessner.net/articles/JsonPath/). Path() string // Children contains all children of the node, might be empty. Children() []Node // Format writes the formatted node (and its children) into a formatter. Format(f Formatter, indentLvl int) // IsCollapsable determinates if a node can collapse its children. IsCollapsable() bool // IsCollapsed is the current state of collapse. IsCollapsed() bool // ToggleExpansion tries to toggle the current state of expansion/collapse. ToggleExpansion() }
Node represents the comcept of a generic node that mostly key/value-based.
Click to show internal directories.
Click to hide internal directories.