Right now, the repository uses some string concatenations for code generation.
As such, I propose that the code should be refactored into using a proper code generation library.
Here are a few candidates that I think is suitable:
Jennifer seems like a really popular choice, although I personally think the short syntax could get pretty confusing given how short it is. That said, it comes close to being pretty decent.
wrtr seems like a new one, and its API looks a lot like a slightly more verbose Jennifer. It might have extra debug features that would make a better experience than Jennifer.
Right now, the repository uses some string concatenations for code generation.
As such, I propose that the code should be refactored into using a proper code generation library.
Here are a few candidates that I think is suitable:
https://github.com/dave/jennifer
Jennifer seems like a really popular choice, although I personally think the short syntax could get pretty confusing given how short it is. That said, it comes close to being pretty decent.
https://github.com/moznion/gowrtr
wrtr seems like a new one, and its API looks a lot like a slightly more verbose Jennifer. It might have extra debug features that would make a better experience than Jennifer.