示例#1
0
func (p ParameterProvider) PathParams(req *http.Request) map[string]string {
	return mux.Vars(req)
}
示例#2
0
func (p ParameterProvider) PathParam(req *http.Request, param string) string {
	return mux.Vars(req)[param]
}
示例#3
0
func (r RouteProvider) Vars(req *http.Request) map[string]string {
	return mux.Vars(req)
}