TreePrinter is able to render a list.
| 35 | |
| 36 | // TreePrinter is able to render a list. |
| 37 | type 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. |
| 51 | func (p TreePrinter) WithTreeStyle(style *Style) *TreePrinter { |
nothing calls this directly
no outgoing calls
no test coverage detected