Why “go install” generated binary does not show deadlock error?

前端 未结 0 779
心在旅途
心在旅途 2021-01-14 15:09

For the below code:

package main

func main() {
    ch := make(chan int)
    ch <- 5
}

go run gives deadlock error:

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