Documentation ¶
Overview ¶
An extremely basic spinner library
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Spinner ¶
type Spinner struct { // Index of the current spinner art, it's fine to not set this when creating a new spinner. ArtIndex int // Prefix to display before the spinner. Prefix string // Suffix to display after the spinner. Suffix string // Spinner art to display, // eg. ["/", "|", "\\", "-"] SpinnerArt []string }
Spinner Struct.
func (*Spinner) DisplaySpinner ¶
func (spinner *Spinner) DisplaySpinner()
Displays the spinners current state. Make sure to call End() when you are done with the spinner. It is not possible to print something in the middle of a spinner spinning or else there will be multiple spinners. For example, do not do this:
spinner.DisplaySpinner() fmt.Println("Do not do this") spinner.DisplaySpinner()
Click to show internal directories.
Click to hide internal directories.