oh-my-posh/httpclient.go
2020-12-01 20:49:51 +01:00

16 lines
248 B
Go

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{}
)