1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 16:50:54 +00:00
Beego/utils/caller.go
2013-12-11 22:18:45 +08:00

11 lines
155 B
Go

package utils
import (
"reflect"
"runtime"
)
func GetFuncName(i interface{}) string {
return runtime.FuncForPC(reflect.ValueOf(i).Pointer()).Name()
}