On Mon, 2016-09-12 at 01:17 +0100, Julian Phillips wrote: > Um, no you don't ... > > If you want to get at the actual interface type being passed in then > you > need to do the dance, but in this case the question was about the > pointer in the interface - so we don't care about the Fooer type at > all. > > ValueOf(f2) is the same as ValueOf(&f2).Elem().Elem(), so > ValueOf(f2).IsNil() is all that is needed here.
Good point. Thank you for the correction. -- 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.