Hi all,

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?

Thank you very much.

Sincerely,
Dat.

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