Skip to content

Latest commit

 

History

History
44 lines (33 loc) · 1.61 KB

README.md

File metadata and controls

44 lines (33 loc) · 1.61 KB

go-strm

A library that provides an opinionated framework for processing both finite and infinite data tables as streams, for the Go programming language.

Documention

Online documentation, which includes examples, can be found at: http://godoc.org/github.com/reiver/go-strm

GoDoc

Example

package main

import (
	. "github.com/reiver/go-strm"
	. "github.com/reiver/strm-append"
	. "github.com/reiver/strm-csv"
	. "github.com/reiver/strm-head"
	. "github.com/reiver/strm-select"
	. "github.com/reiver/strm-stdout"
)

func main() {
	Begin(CSV, "table.csv").
		Strm(HEAD, 100).
		Strm(SELECT, "color", "size").
		Strm(APPEND, "blue",  5).
	End(STDOUT, "tsv")
}

(Note that in that example dot imports were used.)

Drivers

go-strm is only useful with drivers. Here is a list of some drivers: