
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 日 result[1].Interface().(error) |
2 soulsxd 2018 年 11 月 21 日 retVal[1].Interface().(error) |