progress

package
v1.1.9 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2025 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Reader) error

func Percentage

func Percentage() Option

func WithBuffer

func WithBuffer(buf []byte) Option

func WithContext

func WithContext(ctx context.Context) Option

func WithReader

func WithReader(r io.Reader, length int) Option

type Reader

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

func New

func New(interval time.Duration, opts ...Option) (*Reader, error)

func (*Reader) ProgressChan

func (pr *Reader) ProgressChan() <-chan int

func (*Reader) Read

func (pr *Reader) Read(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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