Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatSize ¶
FormatSize converts bytes to a human-readable string.
Types ¶
type Bar ¶
type Bar struct {
// contains filtered or unexported fields
}
Bar wraps an io.Reader and displays a progress bar to stderr. When reading is complete, the Stop method must be called.
type Spinner ¶
type Spinner struct {
// contains filtered or unexported fields
}
Spinner wraps an io.Reader and displays a bouncing spinner to stderr. When reading is complete, the Stop method must be called.
func NewSpinner ¶
NewSpinner returns a new Spinner that wraps r and displays a bouncing spinner to stderr via p. The onStart callback, if non-nil, is called once at the beginning of the render loop.
Click to show internal directories.
Click to hide internal directories.