Goroutine的sync.WaitGroup相关
func test() { for i := 0; i < 10; i++ { fmt.println("test() 你好golang", i) time.Sleep(time.Millisecond * 100) }}func main() { go test() for i := 0; i < 10; i++ { fmt.Println("main() 你好golan