1
0
mirror of https://github.com/astaxie/beego.git synced 2025-07-10 03:30:20 +00:00

golint utils

This commit is contained in:
astaxie
2015-09-14 23:35:13 +08:00
parent 5015614fdc
commit c6448727de
6 changed files with 14 additions and 12 deletions

View File

@ -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()
}