WithRoot returns a new list with a specific Root.
(root TreeNode)
| 85 | |
| 86 | // WithRoot returns a new list with a specific Root. |
| 87 | func (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. |
no outgoing calls