I am considering creating a package to ease up coding when you have Go structs mirroring the structure of your database tables.
Why:
To avoid having to edit many places (the SELECT, INSERT and UPDATE queries, db table, struct, etc.) every time a field is added/changed/removed from a table
To decrease the amount of typing needed
So, what I wonder is:
1) Is there any similar package out there already?
2) Is it a bad idea to user reflection is such a manner? (limitations, performance, some other reason)
3) What would be a better approach than the one in the example?