Registry / utility / orcaman-writerseeker

orcaman-writerseeker

JSON →
library0.0.0-20200621085525-1d3f536ff85egogounverified

Provides an io.WriteSeeker implementation backed by a byte buffer for in-memory seeking and writing.

go get github.com/orcaman/writerseeker
INSTALL
IMPORT
SIG · ORCAMAN-WRITERSEEK
O
orcaman-writerseeker
utilitygov0.0.0-20200621085525-1d3f536ff85e
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.

writerseeker
github.com/orcaman/writerseeker

Creates a WriterSeeker, writes data, seeks back, and reads.

package main import ( "fmt" "github.com/orcaman/writerseeker" ) func main() { ws := writerseeker.New() ws.Write([]byte("hello")) ws.Seek(0, 0) buf := make([]byte, 5) ws.Read(buf) fmt.Println(string(buf)) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20200621085525-1d3f536ff85elatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
orcaman-writerseeker — go get orcaman-writerseeker · libregistry