Registry / utility / mitchellh-go-linereader

mitchellh-go-linereader

JSON →
library0.0.0-20190213213312-1b945b3263ebgogounverified

A line reader that reads lines from an io.Reader and sends them over a channel.

go get github.com/mitchellh/go-linereader
INSTALL
IMPORT
SIG · MITCHELLH-GO-LINER
M
mitchellh-go-linereader
utilitygov0.0.0-20190213213312-1b945b3263eb
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.

linereader
github.com/mitchellh/go-linereader

Read lines from a reader

package main import ( "fmt" "github.com/mitchellh/go-linereader" "strings" ) func main() { r := linereader.New(strings.NewReader("line1\nline2\n")) for line := range r.Ch { fmt.Println(line) } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20190213213312-1b945b3263eblatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
mitchellh-go-linereader — go get mitchellh-go-linereader · libregistry