func main() {
a := func() {
fmt.Println("hello world first class function")
}
a()
fmt.Printf("%T", a)
}
Can Functions be passed as parameters in Go? - Stack Overflow
A Tour of Go: generic interface arguments
Functional programming - Wikipedia
Golang tutorial: Table Of Contents
No comments:
Post a Comment