Skip to content

ZeroTechh/hades

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Easily Manage Config Files In Go

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages