progress

package
v0.1.33 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bar

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

func NewBar

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

func (*Bar) Set

func (b *Bar) Set(value int64)

func (*Bar) String

func (b *Bar) String() string

type Progress

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

func NewProgress

func NewProgress(w io.Writer) *Progress

func (*Progress) Add

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

func (*Progress) Stop

func (p *Progress) Stop() bool

func (*Progress) StopAndClear

func (p *Progress) StopAndClear() bool

type Spinner

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

func NewSpinner

func NewSpinner(message string) *Spinner

func (*Spinner) Stop

func (s *Spinner) Stop()

func (*Spinner) String

func (s *Spinner) String() string

type State

type State interface {
	String() string
}

Jump to

Keyboard shortcuts

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