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.
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)