Documentation
¶
Overview ¶
Package progress provides pre-configured progress bar utilities.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
Writer is a wrapper around progress.Writer with pre-configured settings.
func (*Writer) AppendTracker ¶
AppendTracker adds a tracker to the progress writer.
func (*Writer) SetOutputWriter ¶ added in v1.1.0
SetOutputWriter redirects rendered output to out.
func (*Writer) Start ¶
func (w *Writer) Start()
Start begins rendering the progress bars in a goroutine.
func (*Writer) StopAndClear ¶
func (w *Writer) StopAndClear()
StopAndClear stops the progress writer and erases the rendered trackers from the terminal. Line count is taken from the NewWriter argument so callers never have to keep that number in sync by hand.
func (*Writer) WaitForRenderDone ¶ added in v1.1.0
func (w *Writer) WaitForRenderDone()
WaitForRenderDone spins until the render goroutine finishes its final pass.
Click to show internal directories.
Click to hide internal directories.