Documentation
¶
Overview ¶
Package spinner exposes reusable UTF-8 spinner frame sets sourced from github.com/kojix2/spinner2.
The package intentionally stays low-level: callers work directly with named frame sets and build any title, border, or overlay behavior outward from those primitives.
Index ¶
- func Names() []string
- type Spinner
- func (s Spinner) DecorateLeft(label string, step int) string
- func (s Spinner) DecorateRight(label string, step int) string
- func (s Spinner) Frame(step int) string
- func (s Spinner) Frames() []string
- func (s Spinner) Interval() int
- func (s Spinner) Name() string
- func (s Spinner) Rune(step int) (rune, bool)
- func (s Spinner) RuneFrames() ([]rune, bool)
- func (s Spinner) SingleCell() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Spinner ¶
type Spinner struct {
// contains filtered or unexported fields
}
Spinner is a reusable animation sequence.
func (Spinner) DecorateLeft ¶
DecorateLeft prefixes the current frame to a label.
func (Spinner) DecorateRight ¶
DecorateRight appends the current frame to a label.
func (Spinner) RuneFrames ¶
RuneFrames converts the spinner into single-cell runes when possible.
func (Spinner) SingleCell ¶
SingleCell reports whether every frame occupies exactly one cell.
Click to show internal directories.
Click to hide internal directories.