Golang Funny: Play with Channel

mikespook ·
**timeout section should be** ```golang c := make(chan int64, 5) defer close(c) select { case <-time.After(time.Second): // timeout fmt.Println("timeout...") case <-c: // received a data fmt.Println("Read a data.") } ```
#1