GitHub - bitfield/script: Making it easy to write shell-like scripts in Go
import "github.com/bitfield/script"
What is script?
script is a Go library for doing the kind of tasks that shell scripts are good at: reading files, executing subprocesses, counting lines, matching strings, and so on.
Why shouldn't it be as easy to write system administration programs in Go as it is in a typical shell? script aims to make it just that easy.
Shell scripts often compose a sequence of operations on a stream of data (a pipeline). This is how script works, too.
This is one absolutel...
Read more at github.com