Server-side form validation 1
This commit is contained in:
@ -1,5 +1,7 @@
|
||||
package models
|
||||
|
||||
import "go-udemy-web-1/internal/forms"
|
||||
|
||||
// TemplateData holds data sent from handlers to templates
|
||||
type TemplateData struct {
|
||||
StringMap map[string]string
|
||||
@ -10,4 +12,5 @@ type TemplateData struct {
|
||||
Flash string
|
||||
Warning string
|
||||
Error string
|
||||
Form *forms.Form
|
||||
}
|
||||
|
Reference in New Issue
Block a user