Easily Manage Config Files In Go
config.yaml
test:
testInt: 32
testFloat: 32.2
testBool: true
testString: "hey"
testList:
- "a"
- "b"
- "c'
main.go
// provide it with the filename and different path where config file could be
config := hades.GetConfig("config.yaml", []string{"path1", "path2"})
test := config.Map("test")
testInt := test.Int("testInt")
testFloat := test.Float("testFloat")
testBool := test.Bool("testBool")
testList := test.List("testList")