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)
}

examples/anonymous-function-with-name/anonymous_function_with_name.out
Start
Hello Anonymous!
End
func()