logo Contact

Thoughts

Sharing my journey, insights, and experiences in tech and life.

Go embed for better SQL query management

This post explores using Go’s embed package for improved SQL query management in applications. It compares embedding SQL in strings versus using separate SQL files with go:embed. Learn how this enhances editor support and maintains single-binary deployment.

On Jan 16, 2022 go golang embed stdlib

Timezone Data in Go 1.15+

On a previous post I wrote about Go’s time locations and how to put those in an alpine Docker container. This was achieved by copying the timezone data zip file from the docker builder image into the distributable image. Then using an environment variable to point Go to the location of that file.

On Dec 10, 2021 go golang timezone stdlib