On Fri, Sep 7, 2018 at 1:53 PM Eric Raymond <e...@thyrsus.com> wrote: > ...provided, that is, that it's possible to get from the member name to a > function pointer that can be called like a closure. Does the reflection > system support such a call-indirect method?
Yep. No embedding or other inheritance-like feature needed: https://play.golang.org/p/SPcJnV0VCr5 -- 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.