Documentation ¶
Index ¶
Constants ¶
View Source
const ( // TreeBody indicates the current operator sub-tree is not finished, still // has child operators to be attached on. TreeBody = '│' // TreeMiddleNode indicates this operator is not the last child of the // current sub-tree rooted by its parent. TreeMiddleNode = '├' // TreeLastNode indicates this operator is the last child of the current // sub-tree rooted by its parent. TreeLastNode = '└' // TreeGap is used to represent the gap between the branches of the tree. TreeGap = ' ' // TreeNodeIdentifier is used to replace the treeGap once we need to attach // a node to a sub-tree. TreeNodeIdentifier = '─' )
Variables ¶
This section is empty.
Functions ¶
func Indent4Child ¶
Indent4Child appends more blank to the `indent` string
func PrettyIdentifier ¶
PrettyIdentifier returns a pretty identifier which contains indent and tree node hierarchy indicator
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.