summaryrefslogtreecommitdiffstats
path: root/cmd/webshopd/main.go
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2026-03-06 11:48:29 -0500
committerSam Anthony <sam@samanthony.xyz>2026-03-06 11:48:29 -0500
commit0dda0350dec5e82be8e5a7767c7f0a56c0d48c94 (patch)
tree7cd4c60b058cd6b6390ecd09f4a5f9687ddedbc0 /cmd/webshopd/main.go
downloadbuth-0dda0350dec5e82be8e5a7767c7f0a56c0d48c94.zip
init Go and Hugo
Diffstat (limited to 'cmd/webshopd/main.go')
-rw-r--r--cmd/webshopd/main.go15
1 files changed, 15 insertions, 0 deletions
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))
+}