SaaSHub helps you find the best software and product alternatives Learn more →
Top 3 Go configuration-file Projects
-
koanf
Simple, extremely lightweight, extensible, configuration management library for Go. Support for JSON, TOML, YAML, env, command line, file, S3 etc. Alternative to viper.
Seems quite useful. Will definitely check it out.
Minor nit: 10MB really isn’t that “small” for a CLI. I’d looked at your go.mod and seems like the most of dependency bloat might be coming from cobra or viper as it has in-tree plugins. You can check out an alternative like https://github.com/knadh/koanf which would decrease the binary size, I’m sure.
-
InfluxDB
Purpose built for real-time analytics at any scale. InfluxDB Platform is powered by columnar analytics, optimized for cost-efficient storage, and built with open data standards.
-
konf
The simplest config loader for Go that reads/watches from file, env, flag and clouds (AWS, Azure, GCP). (by nil-go)
Project mention: Konf 1.0 – The simplest config loader for Go supports file, env, flag and clouds | news.ycombinator.com | 2024-03-20 -
gcfg
read INI-style configuration files into Go structs; supports user-defined types and subsections
Go configuration-file discussion
Go configuration-file related posts
-
Nees help install knadh/koanf
-
Two ways to provide configuration: command-line, yaml file.
-
Simplify Your Configurations in Go
-
Viper – Go Configuration with Fangs
-
Extracting embedded files
-
Is Viper necessary if my app is only using environment variables?
-
I've been using "caarlos0/env" for nearly 4 years? Anything better?
-
A note from our sponsor - SaaSHub
www.saashub.com | 17 Sep 2024