When looking through some Go code I found the following:
ch := make(chan int)
I looked up in a online tutorial how Go Channels work:
https://tour.golang.org/concurrency/2
But I find this example unclear.
Can someone give me a easy explanation and an example of the use of channels?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…