mirror of
https://github.com/astaxie/beego.git
synced 2025-07-10 02:50:19 +00:00
add comments for testing, utils and validation packages
This commit is contained in:
@ -5,6 +5,7 @@ import (
|
||||
"runtime"
|
||||
)
|
||||
|
||||
// get function name
|
||||
func GetFuncName(i interface{}) string {
|
||||
return runtime.FuncForPC(reflect.ValueOf(i).Pointer()).Name()
|
||||
}
|
||||
|
Reference in New Issue
Block a user