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