package main import ( "net/http" ) // Inspired by: https://www.thegreatcodeadventure.com/mocking-http-requests-in-golang/ type httpClient interface { Do(req *http.Request) (*http.Response, error) } var ( client httpClient = &http.Client{} )