Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Apart from that and actual syntax support instead of BS string templates.


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/




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: