reflect.Value.Set using unaddressable value?

8,823 views
Skip to first unread message

liamzebedee

unread,
Aug 24, 2012, 3:52:24 AM8/24/12
to golan...@googlegroups.com
Developing an RPC client, not sure why but line 164 is returning a panic - "reflect.Value.Set using unaddressable value". I am able to print the value, so it's addressable (clarify what is meant by this?).

Thanks

minux

unread,
Aug 24, 2012, 3:57:08 AM8/24/12
to liamzebedee, golan...@googlegroups.com

On Friday, August 24, 2012, liamzebedee wrote:
Developing an RPC client, not sure why but line 164 is returning a panic - "reflect.Value.Set using unaddressable value". I am able to print the value, so it's addressable (clarify what is meant by this?).

liamzebedee

unread,
Aug 24, 2012, 5:43:50 AM8/24/12
to golan...@googlegroups.com, liamzebedee
Thanks for that, no I haven't.

The fix for it was I was instantiating a pointer type and trying to set it, instead of setting .Elem()
Reply all
Reply to author
Forward
0 new messages