mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-27 11:59:40 -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{}
|
|
)
|