jinzhu / configor

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bools not working

mjudeikis opened this issue · comments

Bool variables not working.

config:

type Config struct {
	APPName        string `default:"app name"`
	InsecurePolicy bool

file:

appname: test
InsecurePolicy: true

output:

INFO[0000] {"APPName":"test","InsecurePolicy":false, ...

Update. They work, but all config files have to be in lower cases :/

InsecurePolicy: true -> insecurepolicy: true