// ExtractParam extracts a value by the the provided parameter name from
// the URL.
ExtractParam extracts a value by the the provided parameter name from
the URL.
// ExtractParam extracts a value by the the provided parameter name from // the URL .
func ExtractParam(r *http.Request, p string) (string, error) {
	id := chi.URLParam(r, p)
	if id == "" {
		return "", NewError(nil, http.StatusBadRequest, fmt.Sprintf("invalid %s parameter", p))
	}
	return id, nil
}
func ExtractParam ( r * http . Request , p string ) ( string , error ) { id := chi . URLParam ( r , p ) if id == " " { return " " , NewError ( nil , http . StatusBadRequest , fmt . Sprintf ( " " , p ) ) } return id , nil }
ExtractParam extracts a value by the the provided parameter name from
the URL.
ExtractParam extracts a value by the the provided parameter name from the URL .