Registry / utility / jackc-chunkreader

jackc-chunkreader

JSON →
library1.0.0gogounverified

Package chunkreader provides an opinionated, efficient buffered reader.

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

Read a chunk of data from a reader

package main import ( "fmt" "github.com/jackc/chunkreader" "strings" ) func main() { reader := chunkreader.NewReader(strings.NewReader("hello world")) chunk, err := reader.ReadChunk(5) if err != nil { panic(err) } fmt.Println(string(chunk)) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

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