Files
the-way-to-go_ZH_CN/eBook/exercises/chapter_6/lambda_value.go
2017-02-11 12:24:19 +08:00

20 lines
216 B
Go
Executable File

// lambda_value.go
package main
import (
"fmt"
)
func main() {
fv := func() {
fmt.Println("Hello World!")
}
fv()
fmt.Printf("The type of fv is %T", fv)
}
/* Output:
Hello World!
The type of fv is func()
*/