Documentation
¶
Index ¶
Constants ¶
View Source
const ( ColorReset = "\x1b[0m" ColorRed = "\x1b[31m" ColorGreen = "\x1b[32m" ColorYellow = "\x1b[33m" ColorDim = "\x1b[90m" )
Variables ¶
View Source
var DefaultFrames = []string{"⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"}
Functions ¶
This section is empty.
Types ¶
type Spinner ¶
type Spinner struct {
// contains filtered or unexported fields
}
func NewSpinner ¶
func NewSpinner(out io.Writer, opts ...SpinnerOption) *Spinner
type SpinnerOption ¶
type SpinnerOption func(*Spinner)
func WithColor ¶
func WithColor(colorizer Colorizer, frameColor string) SpinnerOption
func WithFrames ¶
func WithFrames(frames []string) SpinnerOption
func WithHideCursor ¶
func WithHideCursor(hide bool) SpinnerOption
func WithInterval ¶
func WithInterval(d time.Duration) SpinnerOption
Click to show internal directories.
Click to hide internal directories.