preguntar acerca de goroutine

5
réponses

Golang: structure anonyme et structure vide

http://play.golang.org/p/vhaKi5uVmm package main import "fmt" var battle = make(chan string) func warrior(name string, done chan struct{}) { select { case opponent := <-battle: fmt.Printf("%s beat %sn", name, opponent) case …
demandé sur 1970-01-01 00:33:33