3 ms·
Codegen doesn't require string templates, Go comes with its own AST which you can leverage for exactly what you're suggesting. https://golang.org/pkg/go/ast/ h
by reificator 9y ago
Codegen doesn't require string templates, Go comes with its own AST which you can leverage for exactly what you're suggesting.
https://golang.org/pkg/go/ast/ https://golang.org/pkg/go/ast/