form

package
Version: v0.0.0-...-24b4de3 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2018 License: GPL-2.0-only Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IntValue

func IntValue(r *http.Request, key string) (int, error)

IntValue returns int value by key and error if not found

func ModelValue

func ModelValue(r *http.Request, model interface{}) error

Map form values to model and returns error if model is not struct, wrong content type or parse error

func MultipartFile

func MultipartFile(r *http.Request, key string) (multipart.File, *multipart.FileHeader, error)

MultipartFile returns multipart file by key and error if not found

func StringValue

func StringValue(r *http.Request, key string) (string, error)

StringValue returns string value by key and error if not found

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

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