Documentation
¶
Overview ¶
package spinner provides a spinner component for CLI applications.
Index ¶
- func New(title string, options ...Option) *spinner
- type Option
- func WithArrowsCharset() Option
- func WithBlocksCharset() Option
- func WithCharset(charset ...string) Option
- func WithCirclesCharset() Option
- func WithClassicCharset() Option
- func WithConcludedChar(concludedChar string) Option
- func WithFrameRate(speed time.Duration) Option
- func WithWriter(writer io.Writer) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*spinner)
Option defines a function type for setting options on a spinner.
func WithArrowsCharset ¶
func WithArrowsCharset() Option
WithArrowsCharset sets the spinner to use the arrows charset.
func WithBlocksCharset ¶
func WithBlocksCharset() Option
WithBlocksCharset sets the spinner to use the blocks charset.
func WithCharset ¶
WithCharset sets the charset option for a spinner.
func WithCirclesCharset ¶
func WithCirclesCharset() Option
WithCirclesCharset sets the spinner to use the circles charset.
func WithClassicCharset ¶
func WithClassicCharset() Option
WithClassicCharset sets the spinner to use the classic charset.
func WithConcludedChar ¶
WithConcludedChar sets the concludedChar option for a spinner.
func WithFrameRate ¶
WithFrameRate sets the frame rate option for a spinner.
func WithWriter ¶
WithWriter sets the writer option for a spinner.
Click to show internal directories.
Click to hide internal directories.