点击运行
package main import ( "fmt" ) func main() { a := func() { fmt.Println("first class 函数 hello world。") } a() fmt.Printf("%T", a) }
运行结果 :
正在执行...