utils

package
v0.0.0-...-d602c50 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL