Documentation
¶
Index ¶
- type Spinner
- func (s *Spinner) Active() bool
- func (s *Spinner) Reset() *Spinner
- func (s *Spinner) Start()
- func (s *Spinner) Stop()
- func (s *Spinner) StopWithStatus(status string) string
- func (s *Spinner) WithDelay(delay time.Duration) *Spinner
- func (s *Spinner) WithEndMsg(endMsg string) *Spinner
- func (s *Spinner) WithPrefix(prefix string) *Spinner
- func (s *Spinner) WithSuffix(suffix string) *Spinner
- func (s *Spinner) WithWriter(w io.Writer) *Spinner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Spinner ¶
func (*Spinner) Start ¶
func (s *Spinner) Start()
Start will start the spinner. hides the cursor echo -e "\033[?25l" display the cursor echo -e "\033[?25h"
func (*Spinner) StopWithStatus ¶
StopWithStatus stops the spinner and using the status instead of the spinner char.
func (*Spinner) WithEndMsg ¶
func (*Spinner) WithPrefix ¶
func (*Spinner) WithSuffix ¶
Click to show internal directories.
Click to hide internal directories.