MCPcopy
hub / github.com/pterm/pterm / TreePrinter

Struct TreePrinter

tree_printer.go:37–48  ·  view source on GitHub ↗

TreePrinter is able to render a list.

Source from the content-addressed store, hash-verified

35
36// TreePrinter is able to render a list.
37type TreePrinter struct {
38 Root TreeNode
39 TreeStyle *Style
40 TextStyle *Style
41 TopRightCornerString string
42 TopRightDownString string
43 HorizontalString string
44 VerticalString string
45 RightDownLeftString string
46 Indent int
47 Writer io.Writer
48}
49
50// WithTreeStyle returns a new list with a specific tree style.
51func (p TreePrinter) WithTreeStyle(style *Style) *TreePrinter {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected