Files
servtex/main.go
2025-12-25 20:05:33 +01:00

22 lines
396 B
Go

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