mirror of
https://github.com/astaxie/beego.git
synced 2025-07-10 03:30:20 +00:00
golint utils
This commit is contained in:
@ -19,7 +19,7 @@ import (
|
||||
"runtime"
|
||||
)
|
||||
|
||||
// get function name
|
||||
// GetFuncName get function name
|
||||
func GetFuncName(i interface{}) string {
|
||||
return runtime.FuncForPC(reflect.ValueOf(i).Pointer()).Name()
|
||||
}
|
||||
|
Reference in New Issue
Block a user