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

CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • 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

  • CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  • 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

  • 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

  • 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

  • Deploying Nginx with Self-Signed TLS Using Helm and Minikube (Dev & Staging Environments)

    1 project | dev.to | 20 Oct 2024
  • 50 System Design Terms That Will Make You Sound Like a Pro

    2 projects | dev.to | 28 Sep 2024
  • Chapter 5 - Cloning a Remote Repository

    1 project | dev.to | 5 Sep 2024
  • Understanding Kubernetes Architecture: Exploring the Control Plane and Worker Nodes

    2 projects | dev.to | 30 Aug 2024
  • Kubernetes Core Concepts: Building Blocks of Container Orchestration

    2 projects | dev.to | 23 Aug 2024

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