golifehk/handlers/index.go
2022-09-13 21:44:06 +08:00

12 lines
181 B
Go

package handlers
import (
"fmt"
"html"
"net/http"
)
func Index(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "Hello, %q", html.EscapeString(r.URL.Path))
}