An Efficient Struct Configuration Pattern For Golang

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

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • warg

    Declarative and Intuitive Command Line Apps with Go

  • Funcopts aren't always appropriate, but boy do they make things more readable sometimes. I use them pervasively in warg to allow declarative nested CLI commands

  • kelseyhightower/envconfig

    Golang library for managing configuration data from environment variables

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • go-envconfig

    A Go library for parsing struct tags from environment variables.

  • opts

    Small Go lib for generic, vararg func opts (by eddieowens)

  • I've used this a ton throughout my projects. I actually created a tiny generics library to handle it more easily because I was tired of setting up all the boilerplate.

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