Skip to content

Latest commit

 

History

History
28 lines (25 loc) · 523 Bytes

File metadata and controls

28 lines (25 loc) · 523 Bytes

Hades

Easily Manage Config Files In Go

Example

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")