To ORM or Not to ORM
My experiment involves defining a simple database that could be a subset of a blogging engine, as well as write some Go code that populates and queries this database and compare how it looks using plain SQL vs. using an ORM. Instead, we define “objects” (really s) with some magic field tags for gorm: The code working with this database comes in two variants: No-ORM; using plain SQL queries through the package. SQL is a much more stable layer that stays with you across implemented a simple application skeleton using raw SQL and compared it to an implementation using gorm, I can see the appeal of ORMs in reducing boilerplate.
Source: eli.thegreenplace.net