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
The language permits shadowing with := as long as both variables are used after they are
defined. However, it would be reasonable for go vet to warn if := is used to define a
local variable when there is a local variable of the same name in an enclosing block.
Example: http://play.golang.org/p/DQDXOyfwRl . A quick glance might lead one to think
this program would print 2, but it prints 0.
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: