Documentation
¶
Overview ¶
Package progress provides a simple terminal progress bar.
Example ¶
b := progress.NewInt(50)
for i := 0; i <= 50; i++ {
b.ValueInt(i)
b.Text(fmt.Sprintf("iteration %d", i))
b.WriteTo(os.Stdout)
}
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bar ¶
type Bar struct {
StartDelimiter string // StartDelimiter for the bar ("|").
EndDelimiter string // EndDelimiter for the bar ("|").
Filled string // Filled section representation ("█").
Empty string // Empty section representation ("░")
Total float64 // Total value.
Width int // Width of the bar.
// contains filtered or unexported fields
}
Bar is a progress bar.
Click to show internal directories.
Click to hide internal directories.
