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
There seems to be no good way to detect if there is a risk of overflow when converting between integers, e.g. from uint32 to int32.
I hope to add a lint that can detect this situation
No
package main import "fmt" func main() { num := 300 u8 := uint8(num) fmt.Println(u8) }
I hope there is a tool that can give me a hint
The text was updated successfully, but these errors were encountered:
Looks like candidate for "go vet" or "gocritic".
Sorry, something went wrong.
No branches or pull requests
Your feature request related to a problem? Please describe
There seems to be no good way to detect if there is a risk of overflow when converting between integers, e.g. from uint32 to int32.
Describe the solution you'd like
I hope to add a lint that can detect this situation
Describe alternatives you've considered
No
Additional context
I hope there is a tool that can give me a hint
The text was updated successfully, but these errors were encountered: