Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NoOp ¶
type NoOp struct{}
NoOp is a progress bar that does not draw anything.
type ProgressBar ¶
type ProgressBar struct {
// contains filtered or unexported fields
}
ProgressBar handles a progress bar drawing on a terminal.
func New ¶
func New(ctx context.Context, desc string) *ProgressBar
New returns a new ProgressBar using the provided description as the bar label.
func (*ProgressBar) SetCurrent ¶
func (p *ProgressBar) SetCurrent(cur int64)
SetCurrent sets the current value of the ProgressBar.
func (*ProgressBar) SetMax ¶
func (p *ProgressBar) SetMax(max int64)
SetMax sets the max value for the ProgressBar.
func (*ProgressBar) Wait ¶
func (p *ProgressBar) Wait()
Wait awaits for the ProgressBar to finish drawing.
Click to show internal directories.
Click to hide internal directories.