Writing the Go modules for Risor is quite easy, but there's so much boilerplate. What if you wrote the functions as normal Go functions, and then generate the mapping functions to it?
I've always wanted to try toy with some simple Go parsing and generation, so I'm currently working on this, and will submit a PR later. So we can see if this could stay
Writing the Go modules for Risor is quite easy, but there's so much boilerplate. What if you wrote the functions as normal Go functions, and then generate the mapping functions to it?
Such as:
And it generates a file with this:
This would not replace the docs generation and parsing proposed by https://github.com/risor-io/risor/issues/118#issuecomment-1859215640 but instead complement it. One does not exclude the other