Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var NoProgressMeter noProgressMeter
NoProgressMeter is a `Progress` that doesn't actually report anything.
var Spinners = []string{"|", "(", "<", "-", "<", "(", "|", ")", ">", "-", ">", ")"}
Spinners is a slice of short strings that are repeatedly output in order to show the user that we are working, before we have any actual information to show.
Functions ¶
This section is empty.
Types ¶
type Progress ¶
Progress is an interface for a simple progress meter. Call `Start()` to begin reporting. `format` should include some kind of '%d' field, into which will be written the current count. A spinner and a CR character will be added automatically.
Call `Inc()` every time the quantity of interest increases. Call `Stop()` to stop reporting. After an instance's `Stop()` method has been called, it may be reused (starting at value 0) by calling `Start()` again.