2
0
Golang library for reading configurations from JSON, YAML files, environment variables and command line.
Go to file
2017-12-12 22:51:25 +08:00
cli add comments 2017-12-12 16:00:34 +08:00
env add comments 2017-12-12 16:00:34 +08:00
test add comments 2017-12-12 16:00:34 +08:00
utils add comments 2017-12-12 16:00:34 +08:00
.gitignore Pre 1.0 version 2017-12-11 17:14:53 +08:00
config_test.go add comments 2017-12-12 16:00:34 +08:00
config.go add comments 2017-12-12 16:00:34 +08:00
LICENSE Initial commit 2017-12-06 17:11:17 +08:00
README.md Update README.md 2017-12-12 22:51:25 +08:00

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

  1. Install Yaml library first:
go get gopkg.in/yaml.v2
  1. Run the below to install:
go get github.com/eschao/config

Usage