Mocking HTTP Endpoints in Golang

I recently ran into a situation where I wanted to test an application that talked to a REST API and I wanted to mock out the server interaction. I couldn’t find many existing solutions in this space so I used httptest and testify to come up with a simple solution. tl;dr – Point your client at a server created with … More Mocking HTTP Endpoints in Golang

Advertisement