Golang library for reading configurations from JSON, YAML files, environment variables and command line.
cli | ||
env | ||
test | ||
utils | ||
.gitignore | ||
config_test.go | ||
config.go | ||
LICENSE | ||
README.md |
Introduction
config is a simple golang library and designed to read configurations from JSON, Yaml files, environment variables and command line. config depends on go-yaml to anlayze Yaml file and use built-in JSON library to handle JSON file.
Installation
- Install Yaml library first:
go get gopkg.in/yaml.v2
- Run the below to install:
go get github.com/eschao/config