syncprogress

package
v0.53.1 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2026 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 Reader

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

Reader wraps an io.Reader and fires a progress callback while bytes pass through.

func NewReader

func NewReader(reader io.Reader, cb func(int64)) *Reader

NewReader creates a progress reader.

func (*Reader) Read

func (p *Reader) Read(buf []byte) (int, error)

Read reads from the wrapped reader.

Jump to

Keyboard shortcuts

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