简单、实用且具有主张性的配置加载器。
Simple, useful and opinionated config loader.
There are many solutions regarding configuration loading in Go. I was looking for a simple loader that is as easy to use and understand as possible. The goal was to load config from 4 places: defaults (in the code), files, environment variables, command-line flags. This library works with all of these sources.
Go version 1.14+
go get github.com/cristalhq/aconfig
…
Also see examples: examples_test.go.
Integration with spf13/cobra playground.
See these docs.
暂无开放 Issues,或尚未同步最近议题。