You are right, the documentation for templates is very scanty. You will find all sorts of useful examples in my scaffolder project https://github.com/goblimey/scaffolder.
This doesn't answer your main question, but I see that somebody else has done that. Simon -- 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.