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.
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.
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)