mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-29 04:49:39 -08:00
870af53d35
resolves #170
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{}
|
|
)
|