udemy-go-web-1/internal/models/templatedata.go
2024-06-30 17:08:47 +02:00

17 lines
358 B
Go

package models
import "go-udemy-web-1/internal/forms"
// TemplateData holds data sent from handlers to templates
type TemplateData struct {
StringMap map[string]string
IntMap map[string]int
FloatMap map[string]float32
Data map[string]interface{}
CSRFToken string
Flash string
Warning string
Error string
Form *forms.Form
}