Go - Channel

Card Puncher Data Processing

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.





Discover More
Card Puncher Data Processing
Go - Concurrency

Go concurrency is build on Communicating_sequential_processes - Tony Hoare’s CSP...
Card Puncher Data Processing
Go - Goroutine (concurrent function execution)

A goroutine is a concurrent function execution. A channel is a communication mechanism that allows one goroutine to pass values of a specified type to another goroutine. The function main runs in a goroutine...
Card Puncher Data Processing
Go - Reference Type

Reference type in go , , , ,



Share this page:
Follow us:
Task Runner