Documentation ¶ Index ¶ func ParseResponseBody[R any](resp *http.Response) (R, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func ParseResponseBody ¶ func ParseResponseBody[R any](resp *http.Response) (R, error) ParseResponseBody is a function that takes in an HTTP response and returns a decoded result of type R and an error (if any). The generic type R enables parsing response bodies into different types by the caller. Types ¶ This section is empty. Source Files ¶ View all Source files utils.go Click to show internal directories. Click to hide internal directories.