func ftestInterface(i interface{}){
if reflect.NewValue(i).(*reflect.FuncValue).Get() == reflect.NewValue(test).(*reflect.FuctValue).Get()){
fmt.Printf("equal\n")
}
}
But is there any way i can get the function from test ?ie:
func getFuncName(i interface{}){
return "test"
}
Reflect can, however, see the names of methods. Maybe there's a
workaround you can apply there, depending on your application.
Andrew