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
// reading and thinking ...
done <- true
}
done := make(chan bool)
go open("http://goo.gl/ZYaS1", done)
doSomeThingElse()
<- done