pathVar returns the value of the named path variable from the request URL. The HTTP router (http.ServeMux) already URL-decodes path segments, so unlike the previous gorilla/mux based implementation the value must not be unescaped again. An error is returned to keep call sites uniform with the previ
(r *http.Request, name string)
| 888 | // again. An error is returned to keep call sites uniform with the previous |
| 889 | // url.PathUnescape based code. |
| 890 | func pathVar(r *http.Request, name string) (string, error) { |
| 891 | return r.PathValue(name), nil |
| 892 | } |
| 893 | |
| 894 | // have we setup shared mounts? |
| 895 | var sharedMountsLock sync.Mutex |
no outgoing calls
no test coverage detected
searching dependent graphs…