November 2017
Intermediate to advanced
670 pages
17h 35m
English
Now that we see the value in the pipeline pattern, let's start planning a Go implementation of one.
In Go, pipelines are implemented using a series of stages connected by Go channels. A Go pipeline begins with a data source (aka producer), has stages that are connected via channels, and ends with a data sink (aka consumer).
The data source can be a generator function that sends data to the first stage and then closes the initial outbound channel.
Each filter (step or stage) in the pipeline: