SaaSHub helps you find the best software and product alternatives Learn more →
Top 23 Go environment-variable Projects
-
Create a .env file in root or handle environment variables however you like, we'll use joho/godotenv package.
-
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.
-
-
-
-
-
-
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
golobby-config
A lightweight yet powerful configuration manager for the Go programming language (by golobby)
-
konf
The simplest config loader for Go that reads/watches from file, env, flag and clouds (AWS, Azure, GCP). (by nil-go)
-
-
-
joshbetz/config
🛠 A configuration library for Go that parses environment variables, JSON files, and reloads automatically on SIGHUP. (by joshbetz)
-
-
tfenv
Transform environment variables for use with Terraform (e.g. `HOSTNAME` ⇨ `TF_VAR_hostname`) (by cloudposse-archives)
-
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 -
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
-
hocon
go implementation of lightbend's HOCON configuration library https://github.com/lightbend/config
-
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)
-
-
-
-
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)
-
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 -
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
Go environment-variables discussion
Go environment-variables related posts
-
Building a Google Drive Downloader in Golang (Part 1)
-
Ask HN: How do you share and sync .env files and secrets with your team
-
EpicEnv: Sharing secrets among collaborators with Git
-
An epic environment manager to fix local environment variable management
-
IBM Planning to Acquire HashiCorp
-
Top Secrets Management Tools for 2024
-
How to secure secrets in docker-compose setup?
-
A note from our sponsor - SaaSHub
www.saashub.com | 14 May 2025
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 |