Registry / utility / reiver-go-oi

reiver-go-oi

JSON →
library1.0.0gogounverified

Package oi provides tools for handling short writes and other I/O issues with Go's standard io package.

go get github.com/reiver/go-oi
INSTALL
IMPORT
SIG · REIVER-GO-OI
R
reiver-go-oi
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.

oi
github.com/reiver/go-oi

Writes data to a buffer ensuring no short write occurs.

package main import ( "bytes" "fmt" "github.com/reiver/go-oi" ) func main() { var buf bytes.Buffer n, err := oi.LongWrite(&buf, []byte("Hello, world!")) if err != nil { panic(err) } fmt.Printf("Wrote %d bytes\n", n) }
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
reiver-go-oi — go get reiver-go-oi · libregistry