Documentation ¶
Overview ¶
Package spinner provides a terminal spinner/loader
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Prefix = []string{
"",
"\x1b[36mfetching\x1b[m ",
"\x1b[36mprocessing\x1b[m ",
"\x1b[36mdownloading\x1b[m ",
}
list of spinner prefixes.
Functions ¶
This section is empty.
Types ¶
type Spinner ¶
type Spinner struct { Delay time.Duration // Delay is the speed of the spinner Prefix string // Prefix string that will be prepended to the spinner Color colors.Color // Color of the spinner // contains filtered or unexported fields }
Spinner config.
func Default ¶
Default is a wrapper around NewSpinner with predefined spinner color and time delay options.
func NewSpinner ¶
NewSpinner returns a pointer to Spinner instance with provided options.
Click to show internal directories.
Click to hide internal directories.