Files
ironmount/main.go
Nicolas Meienberger 8d86f56b87 feat: go mod init
2025-08-09 11:35:00 +02:00

21 lines
351 B
Go

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