Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HTTPGet ¶
Get makes an HTTP GET request to the specified URL and unmarshals the JSON response into the provided generic type T.
func HTTPGetWithError ¶
func HTTPGetWithError[T any, TError any](client *http.Client, url string) (obj T, objError TError, statusCode int, err error)
Get makes an HTTP GET request to the specified URL and unmarshals the JSON response into the provided generic type T.
func NewHTTPClient ¶
Helper function to get the appropriate HTTP client
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.