golang错误link reading body gob: attempt to decode into a non-pointer

前端之家收集整理的这篇文章主要介绍了golang错误link reading body gob: attempt to decode into a non-pointer前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

出错代码:err = client.Call("Math.Add",args,rep)

出错原因:链接采用非指针,

解决方法:改成指针err = client.Call("Math.Add",&args,&rep)

原文链接:https://www.f2er.com/go/190606.html

猜你在找的Go相关文章