From 8d86f56b87c3d59557b26f1b27f9ecf54a069e00 Mon Sep 17 00:00:00 2001 From: Nicolas Meienberger Date: Sat, 9 Aug 2025 11:35:00 +0200 Subject: [PATCH] feat: go mod init --- go.mod | 3 +++ main.go | 20 ++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 go.mod create mode 100644 main.go diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..6a0c940 --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module ironmount + +go 1.24.5 diff --git a/main.go b/main.go new file mode 100644 index 0000000..e54950a --- /dev/null +++ b/main.go @@ -0,0 +1,20 @@ +package main + +import ( + "fmt" + "net/http" +) + +func handler(w http.ResponseWriter, r *http.Request) { + fmt.Fprintln(w, "Hello, World!") +} + +func main() { + http.HandleFunc("/", handler) + + fmt.Println("Server is running on http://localhost:8080") + err := http.ListenAndServe(":8080", nil) + if err != nil { + fmt.Println("Error starting server:", err) + } +}