[Solved] Why syntax for channel parameters are different? Are there any underlying meaning?


I’m familiar with the syntax: variableName type in Go. Is this a channel type, or an int type, or a chan int type? And what’s with the weird syntax?

chan int is the type. It’s just as “weird” as []int.

solved Why syntax for channel parameters are different? Are there any underlying meaning?