For those who didn't dive into the spec, the non-blocking recieve syntax has changed to use the select statement:
func f(ch chan int) {
select {
case v := <-ch:
fmt.Println("got", v)
default:
fmt.Println("did not block")
}
}
http://play.golang.org/p/ql0qSUVXeX
Select statements allow you to check if a channel has had a value sent on it.
http://golang.org/ref/spec#Receive_operator
https://groups.google.com/d/msg/golang-nuts/Z63l4LDOlsI/54uT...
http://golang.org/ref/spec#Select_statements