Files
the-way-to-go_ZH_CN/eBook/exercises/chapter_6/lambda_value.go
2015-03-03 12:25:25 -05:00

18 lines
231 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()
*/