Documentation ¶
Index ¶
- Constants
- type Option
- type Options
- type Spinner
- func (s *Spinner) IsActive() bool
- func (s *Spinner) SetCharset(charset []string) *Spinner
- func (s *Spinner) SetColor(color string) *Spinner
- func (s *Spinner) SetPrefix(text string) *Spinner
- func (s *Spinner) SetText(text string) *Spinner
- func (s *Spinner) Start() *Spinner
- func (s *Spinner) Stop() *Spinner
Constants ¶
View Source
const DefaultText = "Initializing..."
DefaultText defines the default spinner text.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Options)
func WithWriter ¶
WithWriter configures an output for a spinner.
type Spinner ¶
type Spinner struct {
// contains filtered or unexported fields
}
func (*Spinner) SetCharset ¶
SetCharset sets the prefix for spinner.
Click to show internal directories.
Click to hide internal directories.