response

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToInterface

func ToInterface[T any](r *http.Response) (*T, error)

Types

type ApiError

type ApiError struct {
	StatusCode       int    `json:"status_code"`
	Errno            int32  `json:"errno,omitempty"`
	ErrMsg           string `json:"errmsg"`
	Erro             string `json:"error"`
	ErrorDescription string `json:"error_description"`
	ErrorCode        int    `json:"error_code"`
	ErrorMsg         string `json:"error_msg"`
}

func (*ApiError) Error

func (e *ApiError) Error() string

func (*ApiError) String

func (e *ApiError) String() string

Jump to

Keyboard shortcuts

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