httgo/mock net/http mock via interface using httptest Install go get gopkg.in/httgo/mock.v1 License MIT