caller.go 155 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 package utils import ( "reflect" "runtime" ) func GetFuncName(i interface{}) string { return runtime.FuncForPC(reflect.ValueOf(i).Pointer()).Name() }