Go Forum
httptest.NewRequest how to include path with value?
Getting Help
GonzaSaya
(Gonzalo Sayago)
April 8, 2024, 3:43pm
2
Try:
r, err := http.NewRequest(method, path, body) r.SetPathValue("key", "value")
Example in:
1 Like
show post in topic