spinner

package
v0.0.0-...-c6fe939 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// MagicLength is the number of chars in the magic string
	MagicLength = len(frames[len(frames)-1])
)

Functions

This section is empty.

Types

type Spinner

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

Spinner represents a spinning console output.

func New

func New(writer *writer.PrettyWriter) *Spinner

New instantiates and returns a new spinner struct.

func (*Spinner) Done

func (s *Spinner) Done()

Done clears the cursor.

func (*Spinner) Tick

func (s *Spinner) Tick(count uint64)

Tick increments the cursor.

Jump to

Keyboard shortcuts

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