Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LocalizedTemplate ¶
type LocalizedTemplate struct { Language string `json:"language"` TemplateName string `json:"template"` FromName string `json:"fromName"` Subject string `json:"subject"` Template *template.Template }
func GetTemplate ¶
func GetTemplate(templateName, language string) (LocalizedTemplate, error)
GetTemplate returns the template matching the templateName and the language
func (LocalizedTemplate) Execute ¶
func (td LocalizedTemplate) Execute(payload interface{}) ([]byte, error)
Execute executes the Template, filling it with the values from the payload
func (*LocalizedTemplate) UnmarshalJSON ¶
func (td *LocalizedTemplate) UnmarshalJSON(jsonBytes []byte) error
Click to show internal directories.
Click to hide internal directories.