httptestx

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSONResponseRecorder

type JSONResponseRecorder[T any] struct {
	*httptest.ResponseRecorder
}

func NewJSONResponseRecorder

func NewJSONResponseRecorder[T any]() *JSONResponseRecorder[T]

func (JSONResponseRecorder[T]) MustScan

func (r JSONResponseRecorder[T]) MustScan() T

func (JSONResponseRecorder[T]) Scan

func (r JSONResponseRecorder[T]) Scan() (T, error)

Jump to

Keyboard shortcuts

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