I'm still having trouble, what am I doing wrong?
I was able to get the file name with the below: the function name is
code/hello.go
_, funcname, _, _ := runtime.Caller(0)
fmt.Fprintf(w, "the function name is %s", funcname)
trying to pass the PC to gosym.PCToFunc is throwing this error:
funcname, _, _, _ := runtime.Caller(0)
fmt.Fprintf(w, "the function name is %v", gosym.PCToFunc(funcname))