[Solved] Daisy chain input,output channels together in golang
You have to declare your channel variable outside the loop if you want to re-use it in each iteration (errors and context omitted for brevity): package main import “fmt” func main() { var pipeline Pipeline pipeline.Steps = append(pipeline.Steps, AddBang{}, AddBang{}, AddBang{}, ) src := make(chan Message) pipe := src for _, s := range pipeline.Steps … Read more