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
produces a BADINDEX at runtime however go vet doesn't catch it. To correct the code one should add a tenth argument to the Printf function and all should be ok.
In fact it should catch if the function has more than 9 other arguments (besides the formatting string) but it doesn't.
go version
)?1.6.2
go env
)?linux/amd64
The following code:
produces a
BADINDEX
at runtime howevergo vet
doesn't catch it. To correct the code one should add a tenth argument to thePrintf
function and all should be ok.In fact it should catch if the function has more than 9 other arguments (besides the formatting string) but it doesn't.
The other scenario is this:
https://play.golang.org/p/snrXok614V
An error about the
BADINDEX
No error.
The text was updated successfully, but these errors were encountered: