Registry / utility / miolini-datacounter

miolini-datacounter

JSON →
library1.0.3gogounverified

A Go package for counting bytes read/written through io.Reader and io.Writer wrappers.

go get github.com/miolini/datacounter
INSTALL
IMPORT
SIG · MIOLINI-DATACOUNTE
M
miolini-datacounter
utilitygov1.0.3
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.

datacounter
✓ github.com/miolini/datacounter

Count bytes read from an io.Reader.

package main import ( "fmt" "github.com/miolini/datacounter" "strings" ) func main() { reader := strings.NewReader("hello world") counter := datacounter.NewReaderCounter(reader) buf := make([]byte, 11) counter.Read(buf) fmt.Println(counter.Count()) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.3latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
12
Amazon
1
Resources
miolini-datacounter — go get miolini-datacounter · libregistry