1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-29 19:41:28 +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()
}