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
I make a same stupid error many times. the error is like the code below
a := decimal.NewFromString("123") b := decimal.NewFromString("345") a.Sub(b) // wanted: a = a.Sub(b)
I often forget a = . is there any lint tool for this situation ?
a =
The text was updated successfully, but these errors were encountered:
govet has an unusedresult check. https://golangci-lint.run/usage/linters#govet
Sorry, something went wrong.
thanks for your reply. the document is to simple to understand, do your have a config template ? I tried the conf below, it doesn‘t work
lint: govet: settings: unusedresult: stringmethods: - (github.com/shopspring/decimal.Decimal).Sub
@ppd0705 that looks like the funcs formate, stringmethods should just be Sub
Sub
lint: govet: settings: unusedresult: funcs: - (github.com/shopspring/decimal.Decimal).Sub stringmethods: - Sub
@xiegeo it doesn't work either
No branches or pull requests
I make a same stupid error many times. the error is like the code below
I often forget
a =
. is there any lint tool for this situation ?The text was updated successfully, but these errors were encountered: