[go-nuts] Re: Have you seen any static analysis checker for sync.Mutex.Unlock() call?

2022-01-23 Thread
e this? I was recently thinking about this. I'd > love to see if you have it somewhat working (or even learn about the ideas > you thought of). > > Thanks, > > Subham > > On Tuesday, 21 September, 2021 at 1:12:21 pm UTC+5:30 たふみ wrote: > >> Hi, >> >> I'm seekin

[go-nuts] Have you seen any static analysis checker for sync.Mutex.Unlock() call?

2021-09-21 Thread
Hi, I'm seeking the static analysis checker (go vet tool) for missed call sync.Mutex.Unlock(). For example: source code is like type T struct { mu sync.Mutex } func (t *T) A(a bool) { t.mu.Lock() if (a) { // here missing t.mu.Unlock() return } t.mu.Unlock() } and by