Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 485 Bytes

README.md

File metadata and controls

21 lines (15 loc) · 485 Bytes

Stream package

Package stream provides filters that can be chained together in a manner similar to Unix pipelines. A simple example that prints all go files under the current directory:

stream.Run(
	stream.Find("."),
	stream.Grep(`\.go$`),
	stream.WriteLines(os.Stdout),
)

Installation

go get github.com/ghemawat/stream

See godoc for further documentation and examples.