Anonymous functions assigned to name



examples/anonymous-function-with-name/anonymous_function_with_name.go
package main

import "fmt"

func main() {
    f := func() {
        fmt.Println("Hello Anonymous!")
    }
    fmt.Println("Start")
    f()
    fmt.Println("End")
    fmt.Printf("%T", f)
}

Start
Hello Anonymous!
End
func()