Registry / utility / jackc-chunkreader-v2

jackc-chunkreader-v2

JSON →
library2.0.1gogounverified

Package chunkreader provides an io.Reader wrapper that minimizes IO reads and memory allocations.

go get github.com/jackc/chunkreader/v2
INSTALL
IMPORT
SIG · JACKC-CHUNKREADER-
J
jackc-chunkreader-v2
utilitygov2.0.1
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.

chunkreader
github.com/jackc/chunkreader/v2

Read data using a chunkreader wrapper.

package main import ( "fmt" "github.com/jackc/chunkreader/v2" "strings" ) func main() { cr := chunkreader.New(strings.NewReader("hello world")) buf := make([]byte, 5) n, _ := cr.Read(buf) fmt.Println(string(buf[:n])) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
jackc-chunkreader-v2 — go get jackc-chunkreader-v2 · libregistry