package main
import "fmt"
import "time"
func f(name string) {
for true {
.Print(name)
fmt}
}
func main() {
go f("A")
go f("B")
go f("C")
.Sleep(3 * time.Second)
time}
$ go run a.go
ABABABABABABABABABAB(略)ABCABCABCABCABCABCBACBACABCABCABCABCABCABCACAC
http://www.slideshare.net/takuyaueda967/goroutine-channel-go