sync.Mutex or sync.RWMutex methods exposed GO-W4013
Bug risk
Major
8 months agoa year old
don't embed sync.RWMutex
31// The zero value for a RWMutex is an unlocked mutex.
32//
33// RWMutex must not be copied after first use.
34type RWMutex struct {35	sync.RWMutex
36}
don't embed sync.Mutex
22// Mutex is a mutual exclusion lock. The zero value for a Mutex is an unlocked mutex.
23//
24// Mutex must not be copied after first use.
25type Mutex struct {26	sync.Mutex
27}
28