Help us shape the future of Go! Take the 2026 Go Developer Survey

spinner

package
v1.133.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mode

type Mode int
const (
	ModeBoth Mode = iota
	ModeSpinnerOnly
)

type Spinner

type Spinner interface {
	layout.Model
	Reset() Spinner
	Stop()
	SetMessage(msg string)
	RawFrame() string
}

func New

func New(ar *animation.Runtime, mode Mode, dotsStyle lipgloss.Style) Spinner

func NewWithAnimation added in v1.118.0

func NewWithAnimation(ar *animation.Runtime, mode Mode, dotsStyle lipgloss.Style, anim animation.Spinner) Spinner

NewWithAnimation creates a spinner that uses the provided duration-aware animation. If anim is empty, animation.Chat is used.

func NewWithFrames added in v1.118.0

func NewWithFrames(ar *animation.Runtime, mode Mode, dotsStyle lipgloss.Style, frames animation.Frames) Spinner

NewWithFrames creates a spinner that animates using the provided frame set. If frames is empty, animation.Chat is used.

Jump to

Keyboard shortcuts

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