Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use 'go generate' #5

Open
martinlindhe opened this issue Sep 9, 2016 · 3 comments
Open

Use 'go generate' #5

martinlindhe opened this issue Sep 9, 2016 · 3 comments

Comments

@martinlindhe
Copy link
Owner

It would make sense to generate this code from some tables.

See https://blog.golang.org/generate

@soumya92
Copy link
Collaborator

Do you have a preference/strong inclination to use golang to generate these files? If not, I'd be happy to send you a PR for using ruby/erb to generate the go code.

@martinlindhe
Copy link
Owner Author

I do feel the solution should be written in golang too, as this is a go lib.
Any particular reason for wanting to use another language?

@soumya92
Copy link
Collaborator

I just find it easier to write template-style programs in ruby, especially since interpolation is easier and map/each blocks are more compact, but that could just be because I haven't tried using go to generate a go program yet.
I'll check back when I'm more comfortable writing go template programs and if this still needs work, I can try to put something together.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants