Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultRemainingStyle = NewStyle('─', style.New(style.FgBlack)) DefaultCompletedStyle = NewStyle('─', style.New(style.FgRed)) DefaultFinishedStyle = NewStyle('─', style.New(style.FgGreen)) )
Default progress bar styles. These are used if the corresponding styles of a Bar are not explicitly set.
Functions ¶
This section is empty.
Types ¶
type Bar ¶
type Bar struct { RemainingStyle *Style CompletedStyle *Style FinishedStyle *Style MaxWidth int Completed float64 }
Bar renders a progress bar.
type Style ¶
type Style struct {
// contains filtered or unexported fields
}
Style is the style of a progress bar.
func NewStyle ¶
NewStyle creates a new *Style. Will panic if symbol does not have a rune width of 1.
Click to show internal directories.
Click to hide internal directories.