From 0dda0350dec5e82be8e5a7767c7f0a56c0d48c94 Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Fri, 6 Mar 2026 11:48:29 -0500 Subject: init Go and Hugo --- cmd/webshopd/main.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 cmd/webshopd/main.go (limited to 'cmd/webshopd') diff --git a/cmd/webshopd/main.go b/cmd/webshopd/main.go new file mode 100644 index 0000000..519a299 --- /dev/null +++ b/cmd/webshopd/main.go @@ -0,0 +1,15 @@ +package main + +import ( + "fmt" + "html" + "log" + "net/http" +) + +func main() { + http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { + fmt.Fprintf(w, "Hello, %q", html.EscapeString(r.URL.Path)) + }) + log.Fatal(http.ListenAndServe(":8081", nil)) +} -- cgit v1.2.3