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
Not all examples are meant to be run during testing. People write examples that only exist to be shown as part of documentation. See for example the various examples in https://pkg.go.dev/net/http#pkg-examples. Therefore this is not a rule suitable for Staticcheck.
As highlighted in golangci/golangci-lint#3084, this would be a handy rule to have, allowing us to flag incorrectly set up testable examples.
The text was updated successfully, but these errors were encountered: