I wil deal with this later I guess

Signed-off-by: Odyssey346 <odyssey346@disroot.org>
This commit is contained in:
Odyssey346
2022-07-26 15:14:52 +02:00
parent 16983594f4
commit 1eb3c39f9e
5 changed files with 61 additions and 2 deletions

View File

@@ -21,7 +21,7 @@ func main() {
log.Println("[Segfautilities] Starting")
otherthings.CheckEnv()
log.Println("[HTTP] Starting server")
pieceof := os.Getenv("SEGFAUTILITIES_PORT") // I hate this
pieceof := os.Getenv("SEGFAUTILITIES_PORT")
tmpl := template.Must(template.ParseFiles("static/index.html"))
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
data := StaticThingy{