Concurrency

Atomic Functions or Methods

The sync/atomic package recommends using atomic types and their methods instead of the package-level atomic functions. For good reasons.

Don't Select the Default

In a select block, don't be tempted to add a default case as a "fallback" or it might turn into a busy loop.