We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Like so:
package main import "fmt" func main() { type S struct { I int } structs := []S{S{1}, S{2}} var myI *int for _, s := range structs { myI = &s.I } fmt.Println(*myI) }
We do this a fair amount in my team's code, and it feels awkward to introduce a second variable like
i := s.I myI = &i
or to use a //nolint directive.
//nolint
The text was updated successfully, but these errors were encountered:
This is a linter to find the matter like such code. Please read README.md.
Sorry, something went wrong.
kyoh86
No branches or pull requests
Like so:
We do this a fair amount in my team's code, and it feels awkward to introduce a second variable like
or to use a
//nolint
directive.The text was updated successfully, but these errors were encountered: