I was looking for a good way to write portable scripts for NIX systems and happened across this Go library that chains stuff in a UNIX-y fashion:

script.Stdin().Match("Error").Stdout()