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
I think it's entirely reasonable that a warning about unreachable code warns about unreachable code, even if that code is a call to panic. You can disable the warning with -unreachable=false.
go version go1.11.2 linux/amd64
I like to put panics in places that I know are unreachable. Go vet complains.
For example, the following code yields an unreachable code warning:
The text was updated successfully, but these errors were encountered: