progress

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2025 License: Apache-2.0 Imports: 2 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 interface {
	Add(int) error
	Add64(int64) error
	Current() int64
	SetCurrent(int64) error
	Close() error
}

type ProgressBar

type ProgressBar struct {
	*progressbar.ProgressBar
}

func NewBar

func NewBar(total int64, description, unit string) *ProgressBar

func NewBytesBar

func NewBytesBar(totalBytes int64, description string) *ProgressBar

func (*ProgressBar) Current added in v0.9.0

func (pb *ProgressBar) Current() int64

func (*ProgressBar) SetCurrent added in v0.9.0

func (pb *ProgressBar) SetCurrent(value int64) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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