Factor3 (v0) - a code gen for configuring your Go app

Photo by Peter Herrmann on Unsplash I wrote a small toy for loading configuration easily from multiple sources. I was thinking a lot about it, even wrote a whole post. Here’s a link to it The Problem I wanted a 100% opinionated library that would let me define a Go struct with the expected values and let it generate code that loads configuration from multiple sources, simultaneously: The default configuration will be defined in a yaml file The values in the config file can be overridden by environment variables, and those environment variables can be overridden by passing flags in the commandline....

January 8, 2024 · 3 min · Dror Nir