golang--reflect 经过反射调用方法

1、反射得到方法名 package main import ( "fmt" "reflect" "runtime" ) func main() { pFunc := reflect.ValueOf(OperateFunc).Pointer() funcName := runtime.FuncForPC(pFunc).Name() fmt.Println("方法名为:", funcN
相关文章
相关标签/搜索