title: Get name of function using reflection
body: <p>I'm trying to use Go's reflection system to retrieve the name of a function but I get an empty string when calling the Name method on its type. Is this the expected behavior?</p>
  
  <p>This is a simple example of how I approach the problem:</p>
  
  <pre><code>package main
  
  import "fmt"
  import "reflect"
  
  func main() {
      typ := reflect.TypeOf(main)
      name := typ.Name()
      fmt.Println("Name of function" + name)
  }
  </code></pre>