internal

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrTrailingGarbage = errors.New("trailing garbage (JSON)")

Functions

func JSONBody

func JSONBody[T any](
	ctx context.Context,
	r io.ReadCloser,
	validation string,
	response bool,
) (T, error)

func WithStatus

func WithStatus(statusCode int, err error) error

Types

type BadResponseError

type BadResponseError struct {
	// contains filtered or unexported fields
}

func (*BadResponseError) Error

func (err *BadResponseError) Error() string

func (*BadResponseError) Unwrap

func (err *BadResponseError) Unwrap() error

Jump to

Keyboard shortcuts

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