Hey all !!

I have been googling for this, and wondering if i should try and write 
something to specifically do this.

Here is the idea...

There are lots of awesome libraries out there to help me code gen from a 
struct to lots of other things.
But i need the ability to code gen from a standard golang template --> a 
struct that can encapsulate the data that the template needs ?
This seems really useful for me for lots of things.
I could then code gen off the template to a struct (as part of my build) , 
and if the template changes (could be a myriad of reasons), then I will get 
a compile error, rather than a runtime error. I want compile time errors of 
course for me, and my CI.

Other examples:
- Got lots and lots of email templates or JSON templates that others are 
working up and need to bind to them ?
- Talking to third party SOAP servers ? Just sniff the text over the wire, 
copy it into a golang template, work out what in it needs to be changeable, 
and then code gen a struct to use it.
then just pipeline many together.
- Heaps of other examples of course.


Please let me know your thoughts.
If i am taking the wrong approach feel free to object and steer me 




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