What will be the output of this program?
ch := make(chan int) close(ch) val := <-ch fmt.Println(val)
It will deadlock
It will panic
0
NaN Go Playground share, output:
Program exited.