added backend

This commit is contained in:
2025-11-16 14:16:30 +00:00
parent 627184ad85
commit 6206445e58
2 changed files with 32 additions and 0 deletions

17
backend/main.go Normal file
View File

@@ -0,0 +1,17 @@
package main
import (
"fmt"
"net/http"
)
func main() {
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
fmt.Fprintln(w, "Hello from Go!")
})
fmt.Println("Server running on :8080")
if err := http.ListenAndServe(":8080", nil); err != nil {
panic(err)
}
}