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

14 lines
295 B
Go
Raw Normal View History

package models
// 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
}