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

Method Render

tree_printer.go:109–114  ·  view source on GitHub ↗

Render prints the list to the terminal.

()

Source from the content-addressed store, hash-verified

107
108// Render prints the list to the terminal.
109func (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.
117func (p TreePrinter) Srender() (string, error) {

Callers

nothing calls this directly

Calls 2

SrenderMethod · 0.95
FprintlnFunction · 0.85

Tested by

no test coverage detected