☆
13
pointer vs value receiver methods on a struct with a mutex
I have a struct with a `sync.Mutex` and a method with a value receiver that increments a counter under the lock. `go vet` warns: 'passes lock by value'. I copied it on pu…