golifehk/handlers/index.go

12 lines
181 B
Go
Raw Normal View History

2022-09-13 13:42:51 +00:00
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))
}