4 ms·
Worth noting that some of these can be detected statically -- and some are detected by go vet (e.g., passing a sync.Mutex by value). I don't think it detects th
by travisd 4y ago
Worth noting that some of these can be detected statically -- and some are detected by go vet (e.g., passing a sync.Mutex by value). I don't think it detects the wg.Add bug, but that seems relatively straightforward(†) to add a check for.
(†famous last words, I know)
- kjksf 4y agostaticcheck has a check for wg.Add misuse (https://staticcheck.io/docs/checks https://staticcheck.io/docs/checks, https://staticcheck.io/docs/checks#SA2000 https://staticcheck.io/docs/checks#SA2000)