Go Language * Go-Routines *Channels. New Concepts. Do not communicate by sharing memory; instead, share memory by communicating. creating shared memory VS sharing by communication channels . Lightweight Threads ( Goroutines ). Goroutines.
Go Language *Go-Routines*Channels
So to create a channel that can pass an integer :
channel <- value \\ send value
var get = <-channel \\ receive value
ch:= make(chanint) \\ one element only
ch := make(chan type, value)