The reason is, that there should be no reason in practice to ask this question. There is nothing special about nil-pointers in a non-nil interface, they are a perfectly valid implementation of that interface. The only reason I could think of why you would need to ask that question is, if you want to write general encoding/decoding mechanism (like the encoding/ packages) and in that case having to use reflect makes total sense.
On Sun, Sep 11, 2016 at 11:41 AM, Kiki Sugiaman <ksugia...@gmail.com> wrote: > Thanks, Dan. > > Not exactly a solution for the faint hearted, hah! > > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.