What is the most common approach to configure a backend app?

This page summarizes the projects mentioned and recommended in the original post on /r/golang

InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured
Stream - Scalable APIs for Chat, Feeds, Moderation, & Video.
Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.
getstream.io
featured
  1. viper

    Go configuration with fangs

    I guess most people are using https://github.com/spf13/viper but I don't know if I should read everything from

  2. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  3. kelseyhightower/envconfig

    Golang library for managing configuration data from environment variables

    - Having one way of configuring the app is excellent. You can either prefer environment variables, a file, or flags. You can do what Viper does by reading the file and unmarshalling it. The built-in flag package is enough for your flag-based config needs. If you want to prefer environment variables, I prefer https://github.com/kelseyhightower/envconfig

  4. ko

    Build and deploy Go applications

    - There're many resources available about containerizing an application, but I suggest you buildpacks or ko, which doesn't require writing a Dockerfile

  5. ff

    Flags-first package for configuration

    We have been using https://github.com/peterbourgon/ff for long time now. It combines the standard flags with the environment variables nicely.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • AWS open source newsletter, #211

    2 projects | dev.to | 29 Jun 2025
  • Kubernetes: Binaries size reduction using dead code elimination

    1 project | news.ycombinator.com | 27 Jun 2025
  • First Kubernetes Deployment with Minikube

    1 project | dev.to | 10 Jun 2025
  • Building Burstables: CPU slicing with cgroups

    1 project | news.ycombinator.com | 2 May 2025
  • Kubernetes 1.33: A Deep Dive into the Exciting New Features of Octarine

    2 projects | dev.to | 26 Apr 2025

Did you know that Go is
the 4th most popular programming language
based on number of references?