Skip to content

Instantly share code, notes, and snippets.

@lee-dohm
Created August 25, 2012 05:14
Show Gist options
  • Save lee-dohm/3461122 to your computer and use it in GitHub Desktop.
Save lee-dohm/3461122 to your computer and use it in GitHub Desktop.
An assembly line in Go
import "fmt"
func main() {
c1 = make(chan string)
c2 = make(chan T)
c3 = make(chan U)
go readStuff(c1)
go parseStuff(c1, c2)
go calculateStuff(c2, c3)
for value := range c4 {
fmt.Println(v.String())
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment