I've been using "caarlos0/env" for nearly 4 years? Anything better?

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

Our great sponsors
  • InfluxDB - Collect and Analyze Billions of Data Points in Real Time
  • SonarLint - Clean code begins in your IDE with SonarLint
  • Mergify - Tired of breaking your main and manually rebasing outdated pull requests?
  • kelseyhightower/envconfig

    Golang library for managing configuration data from environment variables

    https://github.com/kelseyhightower/envconfig is also popular

  • env

    A simple and zero-dependencies library to parse environment variables into structs

    I also have been using https://github.com/caarlos0/env in all projects since that was the one which I used in first project.

  • InfluxDB

    Collect and Analyze Billions of Data Points in Real Time. Manage all types of time series data in a single, purpose-built database. Run at any scale in any environment in the cloud, on-premises, or at the edge.

  • koanf

    Simple, extremely lightweight, extensible, configuration management library for Go. Support for JSON, TOML, YAML, env, command line, file, S3 etc. Alternative to viper.

    Personally I like: https://github.com/knadh/koanf

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