Golang goroutine lifecycle, what about variables in the goroutine?

前端 未结 0 1788
猫巷女王i
猫巷女王i 2021-02-18 15:14

I have following program:

type Test struct {
}

func mytest() {
    test := Test{}
}

func main() {
   go mytest()

   sigs := make(chan os.Signal, 1)
   done :=          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题