mirror of https://github.com/k3s-io/k3s
11 lines
158 B
Go
11 lines
158 B
Go
|
package util
|
||
|
|
||
|
import (
|
||
|
"reflect"
|
||
|
"runtime"
|
||
|
)
|
||
|
|
||
|
func GetFunctionName(i interface{}) string {
|
||
|
return runtime.FuncForPC(reflect.ValueOf(i).Pointer()).Name()
|
||
|
}
|