Documentation ¶
Index ¶
- func DropWrapAll(n *Node)
- func WrapAll(n *Node, termWidth int)
- type Node
- func (n *Node) Children() ([]string, []*Node)
- func (n *Node) Collapse() *Node
- func (n *Node) CollapseRecursively()
- func (n *Node) Expand()
- func (n *Node) ExpandRecursively(level, maxLevel int)
- func (n *Node) FindChildByIndex(index int) *Node
- func (n *Node) FindChildByKey(key string) *Node
- func (n *Node) HasChildren() bool
- func (n *Node) IsCollapsed() bool
- func (n *Node) IsWrap() bool
- func (n *Node) Parent() *Node
- func (n *Node) PrettyPrint() string
- func (n *Node) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DropWrapAll ¶
func DropWrapAll(n *Node)
Types ¶
type Node ¶
type Node struct {
Prev, Next, End *Node
Collapsed *Node
Depth uint8
Key []byte
Value []byte
Size int
Chunk []byte
ChunkEnd *Node
Comma bool
Index int
// contains filtered or unexported fields
}
func (*Node) CollapseRecursively ¶
func (n *Node) CollapseRecursively()
func (*Node) ExpandRecursively ¶
func (*Node) FindChildByIndex ¶
func (*Node) FindChildByKey ¶
func (*Node) HasChildren ¶
func (*Node) IsCollapsed ¶
func (*Node) PrettyPrint ¶
Click to show internal directories.
Click to hide internal directories.