We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d76046 commit a7382b6Copy full SHA for a7382b6
connections/connection.go
@@ -68,13 +68,12 @@ type TypesJSONStruct struct {
68
} `json:"damage_relations"`
69
}
70
71
-var httpGet = http.Get
72
var red = lipgloss.Color("#F2055C")
73
var errorColor = lipgloss.NewStyle().Foreground(red)
74
75
// ApiCallSetup Helper function to handle API calls and JSON unmarshalling
76
func ApiCallSetup(url string, target interface{}) error {
77
- res, err := httpGet(url)
+ res, err := http.Get(url)
78
if err != nil {
79
return fmt.Errorf("error making GET request: %w", err)
80
0 commit comments