This looks like an awesome library. I like how he does this:
type Person struct { FirstName string `db:"first_name"` LastName string `db:"last_name"` Email string }
to map columns to structs.
type Person struct { FirstName string `db:"first_name"` LastName string `db:"last_name"` Email string }
to map columns to structs.
I will say that some of the parts of SQL in golang that I find most annoying, such as populating structs, are handled very nicely by jmoiron's sqlx library. [1] This is not an ORM, but it's an extension to sql that removes some of the most annoying boilerplate nevertheless.
1 = https://github.com/jmoiron/sqlx