api

package
v0.1.94 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2025 License: Apache-2.0 Imports: 4 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrExtraction = errors.New("api error extraction error")

	ErrAPI = errors.New("api error")
)

Functions

func ExtractError

func ExtractError(statusCode int, response any) error

ExtractError provides a response type agnostic way of extracting a human readable error from an API.

Types

This section is empty.

Jump to

Keyboard shortcuts

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