httptest.NewRequest how to include path with value?

Try:

r, err := http.NewRequest(method, path, body)
r.SetPathValue("key", "value")

Example in:

1 Like