I think what is happening when you do the := is that the ok in there is getting
shadowed (the for loop is creating a new block) and so the compiler see it as
a new variable that is not being used.
Sent from my iPhone
> On Nov 11, 2016, at 18:49, so.qu...@gmail.com wrote:
>
>
> I thought i
I thought it was possible to do partial assignment where, if one variable
is already declared and a new one is not.
https://stackoverflow.com/questions/39028645/golang-variable-assignment
In the below example ok has been declared prior, but v has not. Trying to
run the below results in an error