Lesson 30. Goroutines and concurrency

After reading lesson 30, you’ll be able to

  • Start a goroutine
  • Use channels to communicate
  • Understand channel pipelines

Look, it’s a gopher factory! All the gophers are busy building things. Well, almost all. Over in the corner is a sleeping gopher—or maybe he’s deep in thought. Here’s an important gopher: she’s giving orders to other gophers. They run around and do her bidding, tell others what to do, and eventually report back their findings to her. Some gophers are sending things from the factory. Others are receiving things sent from outside.

Until now, all the Go we’ve written has been like a single ...

Get Get Programming with Go now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.