Registry / utility / mitchellh-iochan

mitchellh-iochan

JSON →
library1.0.0gogounverified

Package iochan provides a way to use io.Reader and io.Writer as channels.

go get github.com/mitchellh/iochan
INSTALL
IMPORT
SIG · MITCHELLH-IOCHAN
M
mitchellh-iochan
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.

iochan
github.com/mitchellh/iochan

Creates a pipe using iochan and reads data from a channel.

package main import ( "fmt" "github.com/mitchellh/iochan" ) func main() { r, w := iochan.Pipe() go func() { w <- []byte("hello") close(w) }() for data := range r { fmt.Println(string(data)) } }
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
2 hits · last 30 days
node
2
Resources
mitchellh-iochan — go get mitchellh-iochan · libregistry