Is it possible to define a local variable in Go that can maintain its value from one function call to another? In C, we can do this using the reserved word static.<
static
Declare a var at global scope:
var i = 1 func a() { println(i) i++ }