progress

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2022 License: GPL-3.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrBadSize error = errors.New("ErrBadSize: progress message size not allowed")

ErrBadSize is generated if the string size of the progress is not valid

Functions

This section is empty.

Types

type Progress

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

Progress structure

func New

func New(optionals ...int) Progress

New Progress structure

func (*Progress) Print

func (p *Progress) Print(optionals ...bool)

Print Progress structure on stderr or stdout if the first optional argument is true

func (*Progress) SetPre

func (p *Progress) SetPre(newPre string)

SetPre set the prologue part of the progress message

func (*Progress) String

func (p *Progress) String() string

func (*Progress) Update

func (p *Progress) Update(message string)

Update the status of the Progress

Jump to

Keyboard shortcuts

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