But what if we don't need communication? What if we just want to make sure only one goroutine can access a variable at a time to avoid conflicts?

    Go's standard library provides mutual exclusion with and its two methods:

    mutex-counter.go