interface

Mocking HTTP Requests in Golang

Let's take a look at how we can use interfaces to build a shared mock HTTP client that we can use across the test suite of our Golang app.…