udemy-go-web-1/internal/models/templatedata.go

18 lines
433 B
Go
Raw Permalink Normal View History

package models
2024-06-30 15:08:47 +00:00
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{}
Form *forms.Form
CSRFToken string
Flash string
Warning string
Error string
IsAuthenticated int
}