Combine yaml and environment config
- Parse yaml
- Parse env
- Watch yaml config file
go get github.com/onedaycat/goconf
type SampleA struct {
A string
CamelCase bool
ManualOverride1 string
SplitWord1 string `default:"split"`
ID string
DefaultValue string
}
type Sample struct {
Value string
}
sample := &Sample{}
goconf.Parse("PREFIX", sample)