摘要: 反射的包名:reflect 步骤: 1:根据传入函数获取函数的指针 2:通过指针获取函数名称 代码: func apply(op func(int , int) int , a,b int) int{ pointer:= reflect.ValueOf(op).Pointer() funcName 阅读全文
posted @ 2019-04-13 17:49 niutao 阅读(762) 评论(0) 推荐(1) 编辑