From Dev.to
When to use sync.atomic instead of sync.Mutex
This is a [MICRO WRITEUP] Both of them provide the ability to protect shared data from concurrent access or being overwritten while a single goroutine is processing it. However, there are several use...
