Goflow for dataflow programming
The github.com/trustmaster/goflow package is useful for creating dataflow-based applications. It tries to abstract concepts so that you can write components and connect them together using a custom network. This recipe will recreate the application discussed in Chapter 8, Testing, but it will do so using the goflow package.
Getting ready
Configure your environment according to these steps:
- Download and install Go on your operating system from https://golang.org/doc/install and configure your
GOPATHenvironment variable. - Open a terminal/console application.
- Navigate to your
GOPATH/srcand create a project directory, for example,$GOPATH/src/github.com/yourusername/customrepo. All code will be run and modified from this directory. - Optionally, install the latest tested version of the code using the
go get github.com/agtorre/go-cookbook/command. - Run the
go get github.com/trustmaster/goflowcommand.
How to do it...
These steps cover writing and running your application...