Embedding SQL queries in Go

Go 1.16 introduced the embed package to the standard library. This library allows us to embed static content within your compiled executable program. This is amazing, because we only have to ship one binary, even when we want to include an HTML page, for example.1 One application for embedding that I personally find very exciting, is SQL. Call me old fashioned, but I love me some plain old SQL queries. I think they’re easier to read, reason about, debug, and maintain than anything an ORM or SQL statement builder library can provide.

Hello, World

Hi, I’m Werner, and welcome to my blog! I am a software engineer, professionally writing Go for bol.com. I’ve been writing code since I was 8 years old, and even though the code I wrote back then wasn’t exactly production ready, I’ve picked up a couple of bits of knowledge since. I have the privilege to be the husband of my lovely wife, and father of our amazing daughter. They mean the world to me, and this About would not be complete without them.