Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProgressBar ¶
type ProgressBar struct {
Title string // displayed label for the progressbar
Scale uint16 // width of the bar (3 means that 1/3% of the terminal size)
Ended bool // true if the 100% has been reached
}
func (*ProgressBar) Clear ¶
func (p *ProgressBar) Clear()
clear whole line and move cursor to leftmost of line
func (*ProgressBar) End ¶
func (p *ProgressBar) End()
func (*ProgressBar) GetWinSize ¶
func (p *ProgressBar) GetWinSize() (*WinSize, error)
func (*ProgressBar) Show ¶
func (p *ProgressBar) Show(percent float32) error
Click to show internal directories.
Click to hide internal directories.