spinner

package
v0.5.2-beta.1 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Spinner)

func WithDelay

func WithDelay(delay time.Duration) Option

func WithMessage

func WithMessage(msg string) Option

type Spinner

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

func New

func New(w io.Writer, opts ...Option) *Spinner

func (*Spinner) Done

func (s *Spinner) Done(status string)

func (*Spinner) Fail

func (s *Spinner) Fail()

func (*Spinner) SetFinalMsg

func (s *Spinner) SetFinalMsg(msg string)

func (*Spinner) SetMessage

func (s *Spinner) SetMessage(msg string)

func (*Spinner) Start

func (s *Spinner) Start()

func (*Spinner) Success

func (s *Spinner) Success()

func (*Spinner) UpdateSpinnerMessage

func (s *Spinner) UpdateSpinnerMessage(msg string)

Jump to

Keyboard shortcuts

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