func a() ([]byte, error){
// 反射 要执行的函数为 b()
result = funcValue.Call(params)
return result[0].Bytes(),new err(result[1].String()) // 这样嚒?
}
func b(parmam...) ([]byte, error) { //... return []byte, err }
1
icexin 2018-11-21 11:10:34 +08:00 ![]() result[1].Interface().(error)
|
2
soulsxd 2018-11-21 11:41:33 +08:00 ![]() retVal[1].Interface().(error)
|