clipperhouse / gen

Type-driven code generation for Go
http://clipperhouse.com/gen/overview/
Other
1.43k stars 90 forks source link

`Type` question #102

Open dragosbulugean opened 7 years ago

dragosbulugean commented 7 years ago

Hi @clipperhouse! Love this package, great job! I need a way to iterate over the fields of the struct I'm trying to generate code for. Is there any way I can get a reflect.Type from typewriter.Type (which has a go/types.Type embedded) ?

clipperhouse commented 7 years ago

Hi Dragos! No, gen doesn't do reflection at all, so it won't give you a reflect.Type.

On Dec 1, 2016 9:10 AM, "Dragos Bulugean" notifications@github.com wrote:

Hi @clipperhouse https://github.com/clipperhouse! Love this package, great job! I need a way to iterate over the fields of the struct I'm trying to generate code for. Is there any way I can get a reflect.Type from typewriter.Type (which has a go/types.Type embedded) ?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/clipperhouse/gen/issues/102, or mute the thread https://github.com/notifications/unsubscribe-auth/AANL-esEjfPtvSpaCm_BmByW6zr1OM8lks5rDtVcgaJpZM4LBb34 .