Re:What ORMs have taught me: just learn SQL
by NDizzle on Monday August 04, 2014 @08:40PM
(#8134910)
Forgive my ignorance as I'm not very familiar with golang, but what you're describing above looks (to me) like a parameterized query. Nothing real fancy about that. I'd assume that Go has support for parameterized queries already.
Access could be handled by a map[string]string, with the key as the filename and the value as the SQL (as a first thought).