Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ProgressFormats = []Format{ { Fill: []string{"▓", "█"}, Empty: "░", }, { Fill: []string{"⬤"}, Empty: "◯", }, { Fill: []string{"■"}, Empty: "□", }, { Fill: []string{"⚫"}, Empty: "⚪", }, { Fill: []string{"▰"}, Empty: "▱", }, { Fill: []string{"⬛"}, Empty: "⬜", }, { Fill: []string{"⡀", "⡄", "⡆", "⡇", "⡏", "⡟", "⡿", "⣿"}, Empty: "⣀", }, { Fill: []string{"="}, Head: ">", LeftEnd: "[", RightEnd: "]", Empty: " ", }, { Fill: []string{"▏", "▎", "▍", "▌", "▋", "▊", "▉"}, Empty: " ", }, } )
Functions ¶
This section is empty.
Types ¶
type ProgressBar ¶
type ProgressBar struct {
Format
Out io.Writer //where to write
Width int //width of the bar
ShowPercent bool //show percent
ShowNumeric bool //show current/total
ShowTextSuffix bool //show suffix text
// contains filtered or unexported fields
}
func New ¶
func New(total int) *ProgressBar
func (*ProgressBar) Inc ¶
func (p *ProgressBar) Inc() bool
func (*ProgressBar) Set ¶
func (p *ProgressBar) Set(to int) bool
func (*ProgressBar) SetTextSuffix ¶
func (p *ProgressBar) SetTextSuffix(suffix string)
Click to show internal directories.
Click to hide internal directories.
