Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProgressBar ¶
ProgressBar is a thread-safe, simple progress bar
func (*ProgressBar) Add ¶
func (p *ProgressBar) Add(num int) error
Add with increase the current count on the progress bar
func (*ProgressBar) Reset ¶
func (p *ProgressBar) Reset()
Reset will reset the clock that is used to calculate current time and the time left.
func (*ProgressBar) Set ¶
func (p *ProgressBar) Set(num int) error
Set will change the current count on the progress bar
func (*ProgressBar) SetMax ¶
func (p *ProgressBar) SetMax(num int)
SetMax sets the total number of the progress bar
func (*ProgressBar) SetSize ¶
func (p *ProgressBar) SetSize(size int)
SetSize sets the size of the progress bar.
func (*ProgressBar) Show ¶
func (p *ProgressBar) Show() error
Show will print the current progress bar
Click to show internal directories.
Click to hide internal directories.