Documentation
¶
Index ¶
- type Process
- type Spinner
- func (s *Spinner) AddSpinner(in []string, interval time.Duration) *Spinner
- func (s *Spinner) Done()
- func (s *Spinner) Reverse() *Spinner
- func (s *Spinner) SetCharSet(in []string) *Spinner
- func (s *Spinner) SetComplete(in string) *Spinner
- func (s *Spinner) SetInterval(interval time.Duration) *Spinner
- func (s *Spinner) SetPrefix(in string) *Spinner
- func (s *Spinner) SetSuffix(in string) *Spinner
- func (s *Spinner) String(front []bool) string
- func (s *Spinner) Work()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Process ¶
type Process struct {
Spinners []*Spinner
// contains filtered or unexported fields
}
responsible for docking with io and fresh io
func (*Process) AddSpinner ¶
add a spinner to process manager
type Spinner ¶
type Spinner struct {
Complete string
SpinnerString []string
// contains filtered or unexported fields
}
responsible for managing spinner info
func (*Spinner) AddSpinner ¶ added in v0.5.0
create a spinner and merge it into parent spinner
func (*Spinner) SetComplete ¶
set complete word, which will be show when spinner is done
func (*Spinner) SetInterval ¶
set Spinner's fresh interval
func (*Spinner) SetPrefix ¶
decorate spinner, set prefix of spinner, which will be show when spinner is work
func (*Spinner) SetSuffix ¶
decorate spinner, set suffix of spinner, which will be show when spinner is work
Click to show internal directories.
Click to hide internal directories.
