modulepackage
0.0.0-20150911223149-1935a991f230
Repository: https://github.com/macaron-contrib/binding.git
Documentation: pkg.go.dev
# README
binding

Middleware binding provides request data binding and validation for Macaron.
Installation
go get github.com/macaron-contrib/binding
Getting Help
Credits
This package is forked from martini-contrib/binding with modifications.
License
This project is under Apache v2 License. See the LICENSE file for the full license text.
# Functions
AddRule adds new validation rule.
Bind wraps up the functionality of the Form and Json middleware according to the Content-Type and verb of the request.
BindIgnErr will do the exactly same thing as Bind but without any error handling, which user has freedom to deal with them.
Form is middleware to deserialize form-urlencoded data from the request.
Json is middleware to deserialize a JSON payload from the request into the struct that is passed in.
MultipartForm works much like Form, except it can parse multipart forms and handle file uploads.
SetNameMapper sets name mapper.
Validate is middleware to enforce required fields.
No description provided by the author
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
Type mismatch errors.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Validation errors.
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
Maximum amount of memory to use when parsing a multipart form.
# Type aliases
No description provided by the author
NameMapper represents a form tag name mapper.
No description provided by the author