github.com/jrkt/gostruct (go): Package gostruct is an ORM that builds a package for a specific MySQL database table.  A package with the underlying struct of the table will be created in the $GOPATH/src/models/{table} directory along with several methods to handle common requests. The files that are created in the package, for a 'User' model (for example) would be:  User_base.go - CRUD operations and common ReadBy functions. It also validates any enum/set data type with the value passed to ensure it is one of the required fields  User_extended.go - Custom functions & methods  User_test.go - Serves as a base for your unit testing  examples_test.go - Includes auto-generated example methods based on the auto-generated methods in the CRUX file  It will also generate a connection package to share connection(s) to prevent multiple open database connections.  Dependencies:  Installation:  Create a generate.go file with the following contents (including your db username/password):  Then, run:
Keywords: code-generation|golang|mysql|mysql-database-table