create an int channel in go

To create an int channel in Go, you can use the built-in make function and specify the channel's type as chan int.

main.go
myChannel := make(chan int)
28 chars
2 lines

This will create a channel of type chan int that can be used to send and receive integer values between Go routines.

gistlibby LogSnag