Documentation ¶
Index ¶
Constants ¶
View Source
const (
DefaultFrameRate = time.Millisecond * 150
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Spinner ¶
type Spinner struct { sync.Mutex Title string Template template.Template FrameRate time.Duration Output io.Writer NoTty bool // contains filtered or unexported fields }
func StartNew ¶
StartNew creates a Spinner with default template and FrameRate. after create Spinner, starts the execution.
func (*Spinner) SetTemplate ¶
SetTemplate sets the spinner template
Click to show internal directories.
Click to hide internal directories.