Sharing data with templates: correct import cycle

This commit is contained in:
Muyao CHEN
2024-06-28 10:48:52 +02:00
parent 668e88e578
commit b9c8c2592d
3 changed files with 27 additions and 17 deletions

View File

@ -0,0 +1,13 @@
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
}