Use consts for route names and templates.
This commit is contained in:
parent
a787d5dc7f
commit
60c8aefd49
30 changed files with 135 additions and 82 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue