progressbar

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.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 ProgressBar

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

ProgressBar defines custom progress bar

func NewProgressBar

func NewProgressBar() *ProgressBar

NewProgressBar initializes default progress bar

func NewProgressBarWithWriter

func NewProgressBarWithWriter(w io.Writer) *ProgressBar

NewProgressBarWithWriter initializes progress bar with writer

func (*ProgressBar) SetProgress

func (p *ProgressBar) SetProgress(idx int) error

SetProgress sets the progress status StartProgress should be called before setting status

func (*ProgressBar) Start

func (p *ProgressBar) Start(label string)

Start starts the progress bar with label

func (*ProgressBar) StartNewLine added in v0.8.1

func (p *ProgressBar) StartNewLine(label string)

func (*ProgressBar) StartProgress

func (p *ProgressBar) StartProgress(count int, label string)

StartProgress starts progress bar with count and label

func (*ProgressBar) Stop

func (p *ProgressBar) Stop()

Stop stops progress bar

Jump to

Keyboard shortcuts

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