Render prints the list to the terminal.
()
| 107 | |
| 108 | // Render prints the list to the terminal. |
| 109 | func (p TreePrinter) Render() error { |
| 110 | s, _ := p.Srender() |
| 111 | Fprintln(p.Writer, s) |
| 112 | |
| 113 | return nil |
| 114 | } |
| 115 | |
| 116 | // Srender renders the list as a string. |
| 117 | func (p TreePrinter) Srender() (string, error) { |