Renderable Printers
Renderable printers print text similarily to text printers, but they do not share the same functions as fmt. They have a Render() and Srender() function. This is because the output is to complex and the printer has to be configured to use specific data via options.

Interface

PTerm exposes a RenderablePrinter interface.
Method
Description
Render()
Prints to the terminal or uses the specified Writer
Srender()
Returns the rendered string

Full Specification

pkg.go.dev contains the full specification for this interface and a more technical description.
pterm package - github.com/pterm/pterm - Go Packages
Last modified 16d ago
Copy link
Edit on GitHub