From b30400c2883993c75cc3b1eb10a0353d428d6516 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?O=CC=81scar=20M=2E=20Lage?= Date: Thu, 5 Dec 2024 14:14:27 +0100 Subject: [PATCH] Cosmetics --- cmd/web/main.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/cmd/web/main.go b/cmd/web/main.go index 0eee369..15491a5 100644 --- a/cmd/web/main.go +++ b/cmd/web/main.go @@ -11,19 +11,16 @@ import ( ) func main() { - // Load .env file err := godotenv.Load() if err != nil { log.Fatal("Error loading .env file") } - // Server config port := os.Getenv("SERVER_PORT") if port == "" { port = "8080" } - // Start server http.HandleFunc("/", web.Routes) log.Printf("Server running on port %s...", port) err = http.ListenAndServe(":"+port, nil)