Registry / utility / mitchellh-ioprogress

mitchellh-ioprogress

JSON →
library0.0.0-20180201004757-6a23b12fa88egogounverified

A Go library for tracking progress of I/O operations, such as file downloads or uploads, with callbacks.

go get github.com/mitchellh/ioprogress
INSTALL
IMPORT
SIG · MITCHELLH-IOPROGRE
M
mitchellh-ioprogress
utilitygov0.0.0-20180201004757-6a23b12fa88e
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ioprogress
github.com/mitchellh/ioprogress

Wrap a reader with progress tracking.

package main import ( "fmt" "github.com/mitchellh/ioprogress" "os" ) func main() { file, _ := os.Open("largefile.bin") defer file.Close() progressR := &ioprogress.Reader{ Reader: file, Size: 1000, } buf := make([]byte, 100) progressR.Read(buf) fmt.Println("Read with progress tracking") }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20180201004757-6a23b12fa88elatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
mitchellh-ioprogress — go get mitchellh-ioprogress · libregistry