func (s Shortcuts) DecodeAndValidate(req *http.Request, form forms.Form) error { err := forms.DecodeForm(form, req) if err != nil { return err } return form.Validate() }
func (s TemplatingShortcuts) ProcessForm(req *http.Request, form forms.Form) error { if err := forms.DecodeForm(form, req); err != nil { return err } if err := form.Validate(); err != nil { return err } return form.Save() }