Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTemplate ¶
func GetTemplate(templateName KnownTemplate) (*template.Template, error)
GetTemplate returns a cached template instance according to the template name
Types ¶
type CachedTemplate ¶
type CachedTemplate struct {
// contains filtered or unexported fields
}
CachedTemplate represents a cached template
type KnownTemplate ¶
type KnownTemplate string
const ( TEMPLATE_VERIFY_EMAIL KnownTemplate = "email/verify_email" TEMPLATE_PASSWORD_RESET KnownTemplate = "email/password_reset" )
Known templates
Click to show internal directories.
Click to hide internal directories.