progress

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Progress

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

func New

func New(w io.Writer, trackers int) *Progress

func (*Progress) InitTrackerIfNew

func (p *Progress) InitTrackerIfNew(name string)

InitTrackerIfNew adds a tracker, if not already exists.

func (*Progress) Render

func (p *Progress) Render()

func (*Progress) SetError

func (p *Progress) SetError(name string)

func (*Progress) SetSuccess

func (p *Progress) SetSuccess(name string, message string, price float32, currency string)

func (*Progress) Stop

func (p *Progress) Stop()

Jump to

Keyboard shortcuts

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