// closure.go package main import ( "fmt" ) func main() { x, y := 32, 64 func(a int) { x = 128 fmt.Println("a = ", a) fmt.Println("x = ", x) fmt.Println("y = ", y) }(256) fmt.Println("x = ", x) fmt.Println("y = ", y) }