FYI the second use is just assignment, that's why it's not caught by the unused variable rule.
Re:Everyday hassles in Go
by ominous_prime on Wednesday December 31, 2014 @10:11PM
(#8822020)
Ah right. It only shadows if it's a new scope.
In any case, the go compiler is very helpful in most cases, and better tooling can improve things further.