Hope to add detection of overflow during integer conversion #4751
Unanswered
findmyhappy
asked this question in
Linter Ideas
Replies: 1 comment
-
Looks like candidate for "go vet" or "gocritic". |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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
Beta Was this translation helpful? Give feedback.
All reactions