Categorygithub.com/ZeroTechh/hades
modulepackage
0.1.9
Repository: https://github.com/zerotechh/hades.git
Documentation: pkg.go.dev

# README

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

# Functions

GetConfig returns a map of all config in a toml file.

# Structs

Config allows easy management of map config data.