点击运行
package main import ( "fmt" ) func main() { a := 5 func() { fmt.Println("a =", a) }() }
运行结果 :
正在执行...