gen
gen copied to clipboard
Usage question
Hey Matt,
https://clipperhouse.github.io is perfect for a kV store like boltdb. The time consuming messy aspects of a kV store is when you need to do lots of transformations on top with an open cursor often.
With gen, it's possible to take your model types and then gen the operations you need to do on the data.
I am NIT suggesting a DSL. Just gen as you need to.
I am looking for advice....
Have you even thought of this ?
Have you even combined gen with go generate ? There is some merit here.
Not quite sure I follow (I haven't used BoltDB) but perhaps you are describing something analogous to an ORM? I think it would work for that. gen is about writing things that might be considered boilerplate, where the primary variation is by type.
gen is a nice companion to go generate. Just do something like //go:generate gen, so that gen fits into tooling idiomatically.
Thanks for the tip. I am exploring options and have foudn a few more things that help.
There is an ORM for BoltDB now. Its called Storm. https://github.com/asdine/storm
There is also a great code gen here called Goa. https://github.com/goadesign/goa. It also generates the data layer using Gorm, and is very nice. Its very complete and has its own DSL etc. I am very impressed with it.
Now i am exploring how to generate the web client stuff. Angular 2 and ionic2 is my choice, as angular also now can do react native. For this, i am using angular cli. https://github.com/angular/angular-cli