progress

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ShowLoadingAnimation

func ShowLoadingAnimation(stopChan chan struct{}, wg *sync.WaitGroup, msg string)

Types

type Bar added in v0.6.0

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

func NewBar added in v0.6.0

func NewBar(message string, maxValue, initialValue int64) *Bar

func (*Bar) Set added in v0.6.0

func (b *Bar) Set(value int64)

func (*Bar) String added in v0.6.0

func (b *Bar) String() string

type Progress added in v0.6.0

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

func NewProgress added in v0.6.0

func NewProgress(w io.Writer) *Progress

func (*Progress) Add added in v0.6.0

func (p *Progress) Add(key string, state State)

func (*Progress) Stop added in v0.6.0

func (p *Progress) Stop() bool

func (*Progress) StopAndClear added in v0.6.0

func (p *Progress) StopAndClear() bool

type Spinner added in v0.6.0

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

func NewSpinner added in v0.6.0

func NewSpinner(message string) *Spinner

func (*Spinner) SetMessage added in v0.6.0

func (s *Spinner) SetMessage(message string)

func (*Spinner) Stop added in v0.6.0

func (s *Spinner) Stop()

func (*Spinner) String added in v0.6.0

func (s *Spinner) String() string

type State added in v0.6.0

type State interface {
	String() string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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