As part of chezmoi <https://github.com/twpayne/chezmoi>, I want to reverse text/template.Template.Execute, i.e. given some template output, and some data that was used to generate that output, I want to generate the best possible input template that given the data generates the same output. The problem is roughly specified here: https://github.com/twpayne/chezmoi/issues/97
I'm sure that there's a better way to do this. This seems like a classic algorithms interview question. Any ideas? Cheers, Tom -- 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.