progress

package
v0.154.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Show

func Show(text string, args ...interface{}) *spinner.Spinner

Show starts showing a progress spinner.

func Stop

func Stop()

Stop stops the progress spinner.

Types

type ReadSeeker added in v0.146.0

type ReadSeeker struct {
	io.ReadSeeker
	// contains filtered or unexported fields
}

ReadSeeker is a wrapper around io.ReadSeeker that updates a progress bar.

func NewReadSeeker added in v0.146.0

func NewReadSeeker(r io.ReadSeeker, bar *progressbar.ProgressBar) ReadSeeker

NewReadSeeker returns a new ReadSeeker with the given bar.

func (*ReadSeeker) Close added in v0.146.0

func (r *ReadSeeker) Close() (err error)

func (*ReadSeeker) Read added in v0.146.0

func (r *ReadSeeker) Read(p []byte) (n int, err error)

func (*ReadSeeker) Seek added in v0.146.0

func (r *ReadSeeker) Seek(offset int64, whence int) (int64, error)

Jump to

Keyboard shortcuts

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