summaryrefslogtreecommitdiffstats
path: root/cmd/webshopd/main.go
blob: 519a2997a94eb84a2ee868d38c0df335b7cf50ca (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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))
}