test

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Code generated by github.com/snasphysicist/redeco; DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Post

func Post(w http.ResponseWriter, r *http.Request)

Post is a handler for which to generate a decoder for testing

Types

type PostParameters

type PostParameters struct {
	A string `json:"a"`
	B int64  `path:"b"`
	C uint16 `query:"c"`
	D bool   `query:"d,optional"`
}

PostParameters is the target struct for generating a decoder

func PostDecoder

func PostDecoder(r *http.Request) (PostParameters, error)

Jump to

Keyboard shortcuts

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