params

package
v0.0.0-...-a8a07f9 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

ex12.12 provides a URL query parameter codec with validation triggered by struct tags.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Unpack

func Unpack(req *http.Request, ptr interface{}, checks map[string]Check) error

Unpack populates the fields of the struct pointed to by ptr from the HTTP request parameters in req.

Types

type Check

type Check func(v interface{}) error

Jump to

Keyboard shortcuts

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