Table of Contents

About

A channel is a communication mechanism that allows one goroutine to pass values of a specified type to another goroutine.

Management

  • To sends a value on the channel ch (ch <- expression)
  • To receives all of them (<-ch).

Receive

v, ok = <-ch

where;

  • ok is a Boolean.