Skip to content

Migrate to a proper code generator #2

@diamondburned

Description

@diamondburned

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions