valuedecoder

package
v0.0.0-...-157c9c8 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormGetter

func FormGetter(r *http.Request) (url.Values, error)

func QueryGetter

func QueryGetter(r *http.Request) (url.Values, error)

Types

type Decoder

type Decoder struct {
	Getter func(*http.Request) (url.Values, error)
	URLValuesDecoder
}

func Form

func Form() Decoder

func Query

func Query() Decoder

func (Decoder) Decode

func (d Decoder) Decode(dst interface{}, r *http.Request) error

type URLValuesDecoder

type URLValuesDecoder interface {
	Decode(interface{}, map[string][]string) error
}
var Shared URLValuesDecoder

Shared is exported so that it can be reused.

func Get

func Get() URLValuesDecoder

Jump to

Keyboard shortcuts

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