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
From the mailing list:
A year ago, around Google I/O, we were talking about Go
wishlist items and it came up that some people miss having
a compiler that checks switch case coverage (like some C
compilers do with enums). As I recall, Rob said it doesn't
belong in the compiler (naturally) but would be a good
addition to go vet.
Not sure about the details, but I think the general idea would
be to have go vet report a problem when some but not all
values from a const block are used as cases in a switch.