spinner

package
v1.9.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package spinner is a simple implementation of spinner component

Index

Constants

This section is empty.

Variables

View Source
var DefaultDotSet = "⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏"

DefaultDotSet is the default dot set for spinner.

Functions

This section is empty.

Types

type Spinner

type Spinner struct {
	// contains filtered or unexported fields
}

Spinner is the spinner indicator for terminal.

func NewSpinner

func NewSpinner() *Spinner

NewSpinner will create a new spinner with default charset.

func NewSpinnerWithCharset

func NewSpinnerWithCharset(charset string) *Spinner

NewSpinnerWithCharset will create a new spinner based on the charset.

func (*Spinner) Current

func (s *Spinner) Current() string

Current will show the current character of the spinner.

func (*Spinner) Next

func (s *Spinner) Next() string

Next will show the next character of the spinner.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL