mmtt
2015-08-26 16:49
没法理解啊。写得好复杂。
go func() {
var sender Sender = myChannel
sender <- number
time.Sleep(time.Second)
fmt.Println("Sent!")
}()
go func() {
var receiver Receiver = myChannel
fmt.Println("Received!", <-receiver)
}()
Go语言第一课
107795 学习 · 148 问题
相似问题