You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import (
"net/http""github.com/zenazn/goji/web""github.com/zenazn/goji/param"
)
typesignupFormstruct {
UsernamestringEmailstringAddressstringNewsletterbool
}
funcFormHandler(c web.C, w http.ResponseWriter, r*http.Request) {
err:=r.ParseForm()
iferr!=nil {
...
}
signupForm:=signupForm{}
err:=param.Parse(r.PostForm, &signupForm)
iferr!=nil {
// You can handle the different errors returned by param.Parse here
}
// Do with signupForm as you wish!
}
Is there some middleware or libs?
The text was updated successfully, but these errors were encountered: