var vs := in Go
In Go, top-level variable assignments must be prefixed with the var keyword. Omitting the var keyword is only allowed within blocks. package main var toplevel = “Hello world” // var keyword is required func F() { withinBlock := “Hello world” // var keyword is not required }