I'm not sure how much you know about Go based on your comment, but you have a ; in the first line that is not legal in Go (and you haven't declared the type); you have parens on your for loop and that too is not valid.
If I rewrite your comment in correct Go I get
var i int = 0 // valid
i := 0 // valid
for i := 0; ... { // valid
for var i int = 0; ... { // Not valid
Your final line there is only needed if you want to define the type of i at declaration time inside a for loop. That would be better written for i := int(0); ... {