0
Golang r.URL.Path tutorial#2
Golang r.URL.Path tutorial#2
package main
import (
"fmt"
"net/http"
)
func main() {
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "r.URL.Path.... %s", r.URL.Path)
})
http.ListenAndServe(":8080", nil)
}