progress

package
v0.18.1 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Seeker

type Seeker struct {
	Size     int64
	Progress int64
	// contains filtered or unexported fields
}

Seeker implements a io.ReadSeeker while collecting the read-position inside the contained io.ReadSeeker

func New

func New(next io.ReadSeeker) (*Seeker, error)

New creates a new Seeker from the given io.ReadSeeker

func (*Seeker) Read

func (p *Seeker) Read(o []byte) (n int, err error)

Read implements io.ReadSeeker

func (*Seeker) Seek

func (p *Seeker) Seek(offset int64, whence int) (int64, error)

Seek implements io.ReadSeeker

Jump to

Keyboard shortcuts

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