I am not sure when to use RWMutex and when to use Mutex.
Do you save resources if you use RWMutex instead of Mutex if you do more reads then writes?
I see some people use Mutex all the time no matter what they do, and some use RWMutex and run these methods:
func (rw *RWMutex) Lock()
func (rw *RWMutex) Unlock()
func (rw *RWMutex) RLock()
func (rw *RWMutex) RUnlock()
instead of just:
func (m *Mutex) Lock()
func (m *Mutex) Unlock()
If you save resources, is it that much of a difference that you should use RWMutex if you do more reads then writes?