Hi Ian,

Could you please let me know if there is any plan to fix the limitation?

Indeed, I am considering if it is worthwhile to rewrite my projects in Go.
I have hundreds of interfaces in my Java apps and this feature will help me
a lot.

Thank you very much.

Sincerely,
Dat.






On Wed, Jun 14, 2017 at 2:34 PM, Ian Lance Taylor <i...@golang.org> wrote:

> On Tue, Jun 13, 2017 at 9:27 PM, Dat Huynh <audathu...@gmail.com> wrote:
> >
> > I have a question about Go.
> >
> > Given an interface, how can I create a struct instance with the methods
> of
> > the interface at runtime?
> >
> > After reading the document of Go on the web page
> > https://golang.org/pkg/reflect/#StructOf
> > I see the below statement.
> >
> > "StructOf currently does not generate wrapper methods for embedded
> fields.
> > This limitation may be lifted in a future version."
> >
> > It means that I cannot do it with the current version of Go.
> > Am I correct?
>
> I believe you are correct.
>
> Ian
>

-- 
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.

Reply via email to