Hi, I have been working on a package to compile go templates to regular go code. Today i can announce an early release of it.
Find it here https://github.com/mh-cbon/template-compiler There is still have a lot to test and comment, and to detect some edge cases. But the general idea and structure exists, does work, and shows a way to make that happen. If you are interested to get this production ready, i d like very much to see your questions and PR! Being in a hurry, this announce is very short, I expect a more detailed announce later. This said, i d like to ask the go team if the template package could have a new structure to register a func as a template, see 1 <https://github.com/mh-cbon/template-compiler/blob/master/std/text/template/compiled.go>, 2 <https://github.com/mh-cbon/template-compiler/blob/master/std/text/template/parse/compiled.go> and 3 <https://github.com/mh-cbon/template-compiler/blob/master/std/text/template/exec.go#L247> Finally, i want to take chance of this message to wish to the golang, core team, contributors, users an happy new year and all the best for 2017! Happy coding! -- 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.