12 lines
181 B
Go
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))
|
||
|
}
|