in

Pack a Go workflow/function as a Unix-style pipeline command


tpack

Pack a Go workflow/function as a Unix-style pipeline command.

Wiki
In Unix-like computer operating systems, a pipeline is a mechanism for inter-process communication using message passing. A pipeline is a set of processes chained together by their standard streams, so that the output text of each process (stdout) is passed directly as input (stdin) to the next one.

Use tpack to write Go applications that act as pipeline commands.
Employ channels, goroutines, regular expressions and more to build powerful concurrent workflows.

Examples

See ETL workflow in the examples folder.

package main

import "github.com/reugn/tpack"

func main() {
	tpack.NewPackerStd(tpack.NewFunctionProcessor(
		doETL,
	)).Execute()
}

Test command

cat input.txt | go run *.go 2>/dev/null | wc -l

License

Licensed under the MIT License.

GitHub

https://github.com/reugn/tpack




Leave a Reply

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

GIPHY App Key not set. Please check settings

ZEHAR E ISHQ LYRICS – Varinder Brar, Dr. Aashmeen Shahi

Piramal Ent. shares fall 0.76% as Nifty drops thumbnail

Piramal Ent. shares fall 0.76% as Nifty drops