feat: go mod init

This commit is contained in:
Nicolas Meienberger
2025-08-09 11:35:00 +02:00
parent 68194f2bf2
commit 8d86f56b87
2 changed files with 23 additions and 0 deletions

3
go.mod Normal file
View File

@@ -0,0 +1,3 @@
module ironmount
go 1.24.5

20
main.go Normal file
View File

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