MCPcopy Index your code
hub / github.com/pterm/pterm / WithRoot

Method WithRoot

tree_printer.go:87–90  ·  view source on GitHub ↗

WithRoot returns a new list with a specific Root.

(root TreeNode)

Source from the content-addressed store, hash-verified

85
86// WithRoot returns a new list with a specific Root.
87func (p TreePrinter) WithRoot(root TreeNode) *TreePrinter {
88 p.Root = root
89 return &p
90}
91
92// WithIndent returns a new list with a specific amount of spacing between the levels.
93// Indent must be at least 1.

Calls

no outgoing calls