requests

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 14, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewError

func NewError(statusCode int, message string) error

func RequestJSON

func RequestJSON[ResponseT any](method, url string, body any) (response *ResponseT, err error)

Types

type ResponseError

type ResponseError struct {
	StatusCode int
	Message    string
}

func (ResponseError) Error

func (e ResponseError) Error() string

Jump to

Keyboard shortcuts

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