Documentation ¶
Overview ¶
Package progresstracking provides wrappers around io.Reader and io.Writer that track progress.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewReader ¶
func NewReader(r io.Reader, interval time.Duration, onProgress func(totalRead int, err error)) io.Reader
NewReader wraps the given Reader with a progress tracking Reader that reports progress at the following points:
- First read - Every read spaced at least interval since the prior read - Last read
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.