Data Races and sync.Map
Learn about data races and sync.Map in Go.
We'll cover the following...
Data races
A regular Go map
isn’t safe for concurrent access. Maps are often
used to share data between goroutines, but access to a map
must
be synchronized through sync.Mutex, sync.RWMutex
, some other
memory barrier, or ...