3 ms·
Agreed. I ultimately ended up modifying modelq (a tool that populates a Go text template with your DB schema as the context), and used that to generate CRUD co
by kromem 11y ago
Agreed.
I ultimately ended up modifying modelq (a tool that populates a Go text template with your DB schema as the context), and used that to generate CRUD code for my tables instead of dealing with reflection.
Turned out really nice.
Beego does something similar, but only for the initial setup, and then plugs the schema into their own orm, I was not that keen on. But using a template to roll my own has been great.