You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are many reasons to start a goroutine in a loop, such as starting up a pool of workers, or executing requests in parallel. See the example in https://golang.org/pkg/sync/#WaitGroup.
Could you add more details why you believe this deserves a lint warning?
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Untested at the time of writing
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
A warning that this is a bad pattern from go-lint.
What did you see instead?
Nothing.
The text was updated successfully, but these errors were encountered: