package main import ( "os" "git.noctra.dev/noctra/servtex/globals" "git.noctra.dev/noctra/servtex/backend" //"net/http" ) // Exit Codes: // 0 - ok // 1 - config file could not be read func main() { err := backend.ConfigReader("config.json", &globals.AppConfig) if err != nil { os.Exit(1) } globals.LogFile, err = os.Open(globals.AppConfig.LogFilePath) if err != nil { os.Exit(2) } }