It's a lock: sync.Mutex in Go (opens in new tab)
When two goroutines go to war, a data race is all that you can score. To prevent that, Go’s sync.Mutex type can help.
Read the original articleWhen two goroutines go to war, a data race is all that you can score. To prevent that, Go’s sync.Mutex type can help.
Read the original article