config file reading logic implemented, project structure refined

This commit is contained in:
Maximilian Wagner
2025-12-24 00:26:32 +01:00
parent d30757808d
commit 2d50286efa
13 changed files with 181 additions and 3 deletions

21
main.go Normal file
View File

@@ -0,0 +1,21 @@
package main
import (
"os"
//"log/slog"
"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)
}
}