mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-10 04:54:03 -08:00
16 lines
248 B
Go
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{}
|
||
|
)
|