package main
import "fmt"
type T struct {
msg string
}
var g *T
func setup() {
t := new(T)
t.msg = "hello, world"
g = t
}
func main() {
go setup()
for g == nil {
fmt.Print("1")
}
fmt.Print(g.msg)
}
cGFja2FnZSBtYWluCgppbXBvcnQgImZtdCIKCnR5cGUgVCBzdHJ1Y3QgewoJbXNnIHN0cmluZwp9Cgp2YXIgZyAqVAoKZnVuYyBzZXR1cCgpIHsKCXQgOj0gbmV3KFQpCgl0Lm1zZyA9ICJoZWxsbywgd29ybGQiCglnID0gdAp9CgpmdW5jIG1haW4oKSB7CglnbyBzZXR1cCgpCglmb3IgZyA9PSBuaWwgewoJCWZtdC5QcmludCgiMSIpCgl9CglmbXQuUHJpbnQoZy5tc2cpCn0K