News for hackers. Stuff that matters.
Re:A RESTful Micro-Framework in Go by carbocation on Sunday January 26, 2014 @12:40PM (#7125922)
I agree with you re: the lack of ORMs in golang. I actually enjoy writing and profiling my own SQL, but if I want to prototype, ORMs can speed up the process.

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

Re:A RESTful Micro-Framework in Go by jamra on Sunday January 26, 2014 @01:44PM (#7126221)
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.

Re:A RESTful Micro-Framework in Go by gtaylor on Sunday January 26, 2014 @12:56PM (#7125978)
I hadn't seen sqlx before, but this looks super convenient. Thanks for the tip!