Sounds similar to my use case. Two snags to work around when generating Go source:
1. The {{}} pairs confuse editor syntax coloring (in emacs, anyway).
2. Expansions that introduce or drop line breaks will cause the runtime/dlv to report line numbers that disagree with the pre-gen source you need to correct.
1. The {{}} pairs confuse editor syntax coloring (in emacs, anyway).
2. Expansions that introduce or drop line breaks will cause the runtime/dlv to report line numbers that disagree with the pre-gen source you need to correct.