knadh/koanf
A lightweight, extensible Go library for managing application configurations from diverse sources and formats, offering a cleaner alternative to existing solutions.
Core Features
Quick Start
go get -u github.com/knadh/koanf/v2Detailed Introduction
koanf is a Go configuration management library designed for simplicity, extensibility, and minimal dependencies. It enables applications to load configuration from a wide array of sources like files, environment variables, command-line flags, and cloud services (S3, Vault), while supporting popular formats such as JSON, YAML, and TOML. Its modular design allows developers to easily integrate custom providers and parsers, making it a flexible and efficient alternative to more heavyweight configuration solutions like spf13/viper, particularly for projects prioritizing performance and a clean codebase.