1
0
mirror of https://github.com/astaxie/beego.git synced 2024-06-28 20:54:14 +00:00
Beego/utils/caller.go

11 lines
155 B
Go
Raw Normal View History

2013-12-11 14:18:45 +00:00
package utils
import (
"reflect"
"runtime"
)
func GetFuncName(i interface{}) string {
return runtime.FuncForPC(reflect.ValueOf(i).Pointer()).Name()
}