Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProgressBar ¶
type ProgressBar struct {
// contains filtered or unexported fields
}
ProgressBar defines custom progress bar
func NewProgressBar ¶
func NewProgressBar() *ProgressBar
NewProgressBar initializes default progress bar
func NewProgressBarWithWriter ¶
func NewProgressBarWithWriter(w io.Writer) *ProgressBar
NewProgressBarWithWriter initializes progress bar with writer
func (*ProgressBar) SetProgress ¶
func (p *ProgressBar) SetProgress(idx int) error
SetProgress sets the progress status StartProgress should be called before setting status
func (*ProgressBar) Start ¶
func (p *ProgressBar) Start(label string)
Start starts the progress bar with label
func (*ProgressBar) StartNewLine ¶
func (p *ProgressBar) StartNewLine(label string)
func (*ProgressBar) StartProgress ¶
func (p *ProgressBar) StartProgress(count int, label string)
StartProgress starts progress bar with count and label
Click to show internal directories.
Click to hide internal directories.