jinzhu / configor

Golang Configuration tool that support YAML, JSON, TOML, Shell Environment

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

not working search env "if CONFIGOR_ENV not set, environment will be development by default"

mymtw opened this issue · comments

I have 2 files:

  1. config.yml
  2. config.development.yml

configor.Load(&cfg, "config/environments/config.yml")
go run main.go
not loading my file automatically: config.development.yml
instead he loading config.yml

But in earlier version(January 2017) it loaded config.development.yml

Just checked, should works now.

Thank you for your report.