Created
August 25, 2012 05:14
-
-
Save lee-dohm/3461122 to your computer and use it in GitHub Desktop.
An assembly line in Go
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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