yatzy is an implementation of https://en.wikipedia.org/wiki/Yatzy that shows that pipeline construction is normal Go code. It can even be non-deterministic and produce different pipelines on each invocation.
Package main imports 10 packages (graph). Updated 2018-04-24. Refresh now. Tools for package owners. This is an inactive package (no imports and no commits in at least two years).