Live Printers
Live printers can update their output dynamically and are therefore well suited to display changing data like progress bars and live charts. They feature a
Start()
and Stop()
method.Interface
PTerm exposes a
LivePrinter
interface.Method | Description |
---|---|
Start() | Returns itself and errors |
Stop() | Returns itself and errors |
GenericStart() | Returns the started LivePrinter and errors |
GenericStop() | Returns the stopped LivePrinter and errors |
pkg.go.dev contains the full specification for this interface and a more technical description.
Last modified 1yr ago