Registry / web-framework / macaron-binding

macaron-binding

JSON →
library0.0.0-20190822013154-a5f53841ed2bgogounverified

Binding is a middleware for the Macaron web framework that provides request data binding and validation.

go get gitea.com/macaron/binding
INSTALL
IMPORT
SIG · MACARON-BINDING
M
macaron-binding
web-frameworkgov0.0.0-20190822013154-a5f53841ed2b
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

binding
gitea.com/macaron/binding

Binds a form to a struct with validation in a Macaron handler.

package main import ( "gitea.com/macaron/binding" "gitea.com/macaron/macaron" ) type Form struct { Name string `form:"name" binding:"Required"` } func main() { m := macaron.Classic() m.Post("/submit", binding.Bind(Form{}), func(form Form) string { return "Hello " + form.Name }) m.Run() }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20190822013154-a5f53841ed2blatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
macaron-binding — go get macaron-binding · libregistry