func open(url string, done chan bool) {
// reading and thinking ...
done <- true
}
done := make(chan bool)
go open("http://goo.gl/ZYaS1", done)
doSomeThingElse()
<- done
回复 (5)
L
L
L
客服工程师 - 不用写代码吧
Z
客服工程师,好名称,,
L
这Go代码我竟然差不多看懂了……
参与回复
登录后即可参与回复。登录