progressbar

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2021 License: Apache-2.0 Imports: 7 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 interface {
	// Incr is used to increase progress
	Incr()
	// Wait is used to wait for the rendering of the progress bar to complete
	Wait()
	// SetPrefix is used to set the prefix of progress bar
	SetPrefix(format string, args ...interface{})
	// SetSuffix is used to set the suffix of progress bar
	SetSuffix(format string, args ...interface{})
}

ProgressBar implements a customizable progress bar

func GetProgressBar

func GetProgressBar(ctx context.Context, count int) ProgressBar

GetProgressBar is used to get progress bar

Jump to

Keyboard shortcuts

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