Go environment-variables

Open-source Go projects categorized as environment-variables

Top 23 Go environment-variable Projects

environment-variables
  1. godotenv

    A Go port of Ruby's dotenv library (Loads environment variables from .env files)

    Project mention: Building a Google Drive Downloader in Golang (Part 1) | dev.to | 2024-09-29

    Create a .env file in root or handle environment variables however you like, we'll use joho/godotenv package.

  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. env

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

  4. cleanenv

    ✨Clean and minimalistic environment configuration reader for Golang

  5. envsubst

    Environment variables substitution for Go

  6. go-env

    a golang library to manage environment variables

  7. aconfig

    Simple, useful and opinionated config loader.

  8. fig

    A minimalist Go configuration library (by kkyr)

  9. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  10. golobby-config

    A lightweight yet powerful configuration manager for the Go programming language (by golobby)

  11. konf

    The simplest config loader for Go that reads/watches from file, env, flag and clouds (AWS, Azure, GCP). (by nil-go)

  12. gotenv

    Load environment variables from `.env` or `io.Reader` in Go.

  13. envdecode

    Go package for populating structs from environment variables using struct tags

  14. joshbetz/config

    🛠 A configuration library for Go that parses environment variables, JSON files, and reloads automatically on SIGHUP. (by joshbetz)

  15. zenv

    Enhanced env command to set environment variable by various method

  16. tfenv

    Transform environment variables for use with Terraform (e.g. `HOSTNAME` ⇨ `TF_VAR_hostname`) (by cloudposse-archives)

  17. EpicEnv

    An epic environment manager to fix local environment variable management among git collaborators. Like python virtual envs, but for environment variables.

    Project mention: EpicEnv: Sharing secrets among collaborators with Git | news.ycombinator.com | 2024-08-04
  18. ess

    ess (env-sample-sync): automatically and safely synchronize env.sample files with .env

    Project mention: Ask HN: How do you share and sync .env files and secrets with your team | news.ycombinator.com | 2024-09-08

    I use `ess` (env sample sync) to sync my `.env` with `env.sample`: https://github.com/acaloiaro/ess

  19. hocon

    go implementation of lightbend's HOCON configuration library https://github.com/lightbend/config

  20. ini

    📝 Go INI config management. support multi file load, data override merge. parse ENV variable, parse variable reference. Dotenv file parse and loader. INI配置读取管理,支持多文件加载,数据覆盖合并, 解析ENV变量, 解析变量引用。DotEnv 解析加载 (by gookit)

  21. env

    🔍 Load environment variables into a config struct (by go-simpler)

  22. config

    Declarative configuration for Go (by num30)

  23. env-vault

    Launch a program with environment variables populated from an encrypted file

  24. Genv

    Genv is a library for Go (golang) that makes it easy to read and use environment variables in your projects. It also allows environment variables to be loaded from the .env file. (by sakirsensoy)

  25. enflag

    Container-focused Golang config: unify Env & Flag parsing in one call with minimal code and zero dependencies.

    Project mention: Show HN: Container-focused, generics based Go configuration | news.ycombinator.com | 2025-04-15
  26. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Go environment-variables discussion

Log in or Post with

Go environment-variables related posts

  • Building a Google Drive Downloader in Golang (Part 1)

    2 projects | dev.to | 29 Sep 2024
  • Ask HN: How do you share and sync .env files and secrets with your team

    8 projects | news.ycombinator.com | 8 Sep 2024
  • EpicEnv: Sharing secrets among collaborators with Git

    1 project | news.ycombinator.com | 4 Aug 2024
  • An epic environment manager to fix local environment variable management

    1 project | news.ycombinator.com | 3 Aug 2024
  • IBM Planning to Acquire HashiCorp

    5 projects | news.ycombinator.com | 23 Apr 2024
  • Top Secrets Management Tools for 2024

    4 projects | dev.to | 19 Feb 2024
  • How to secure secrets in docker-compose setup?

    1 project | /r/selfhosted | 13 Oct 2023
  • A note from our sponsor - SaaSHub
    www.saashub.com | 14 May 2025
    SaaSHub helps you find the best software and product alternatives Learn more →

Index

What are some of the best open-source environment-variable projects in Go? This list will help you:

# Project Stars
1 godotenv 9,203
2 env 5,405
3 cleanenv 1,825
4 envsubst 815
5 go-env 625
6 aconfig 586
7 fig 380
8 golobby-config 363
9 konf 317
10 gotenv 303
11 envdecode 230
12 joshbetz/config 215
13 zenv 144
14 tfenv 130
15 EpicEnv 122
16 ess 87
17 hocon 84
18 ini 82
19 env 70
20 config 58
21 env-vault 43
22 Genv 42
23 enflag 34

Sponsored
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