Use consts for route names and templates.

This commit is contained in:
mikestefanello 2023-12-16 11:07:20 -05:00
parent a787d5dc7f
commit 60c8aefd49
30 changed files with 135 additions and 82 deletions

View file

@ -30,7 +30,7 @@ type (
subject string
body string
template string
templateData interface{}
templateData any
}
)
@ -128,7 +128,7 @@ func (m *mail) Template(template string) *mail {
}
// TemplateData sets the data that will be passed to the template specified when calling Template()
func (m *mail) TemplateData(data interface{}) *mail {
func (m *mail) TemplateData(data any) *mail {
m.templateData = data
return m
}