Sync

You can learn about the main synchronization tool, the Mutex, in the Tour of Go: Sync.Mutex.

Getting to know how to use types such as Mutex, RWMutex, WaitGroup, Map, Pool, and Once is highly recommended.

Source code: sync package on go.dev.

Examples: Mutexes on Go by Example.