go test project for loading configs (as a seperate code file)
| .gitignore | ||
| config.ini | ||
| go.mod | ||
| loadconfig.go | ||
| main.go | ||
| README.md | ||
test repo for 2 things:
- splitting up code into different files. Go makes this very easy, simply have them belong to the same package, and start any function you want to make available with a capital letter (such as LoadConfig() in this example).
- Load config from a file: the goal is to have a super simple file i can copypaste that lets me load a few config values form a file similar to INI format (current example just has key=value pairs),