Mocking REST calls

I just wrote a REST handler using the gin-gonic infrastructure. So far everything is fine.

Now I’m looking for a framework which I can use to test my REST handler. I found httpmock in different forks which looks pretty good. But there is no support for url parameters :disappointed:

I found which describes exactly my issue and then created my own fork on but frankly - this is a common issue. So I’m wondering whether somebody knows of a mock library which supports url parameters. I’m hesitating to reinvent the wheel which I expect to exist already :smile:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.