GoRoutines
A lightweight thread managed by go, same address space, must sync access to shared mem
Channels
Channels are a typed conduit through which you can send and receive values with the channel operator, <-
.
(The data flows in the direction of the arrow.)
Like maps and slices, channels must be created before use:
By default, sends and receives block until the other side is ready.
Sum Example
Last updated