Documentation
¶
Index ¶
- func RenderTemplate(name, in string, m map[string]string) (string, error)
- func RenderTemplateFromFs(path string, m map[string]string) (string, error)
- func RenderTemplateFromReader(name string, r io.Reader, m map[string]string) (string, error)
- type Base64
- type Email
- type Sender
- type SmartString
- type Template
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderTemplate ¶ added in v0.2.0
func RenderTemplateFromFs ¶ added in v0.2.0
Types ¶
type Email ¶
type Email struct {
// Which of the accounts registered via the pool module you want to schedule on
Account string `json:"account" validate:"empty=false"`
To []string `json:"to" validate:"empty=false"`
From string `json:"from" validate:"empty=false"`
Cc []string `json:"cc"`
Bcc []string `json:"bcc"`
Subject string `json:"subject"`
ReplyTo []string `json:"reply_to"`
Sender string `json:"sender"`
Attachments []string `json:"attachments"`
// base64 encoded
Body *string `json:"body,omitempty"`
// base64 encoded
HTML *string `json:"html,omitempty"`
File *SmartString `json:"file,omitempty"`
// delay in seconds from now
Delay int `json:"delay" validate:"gte=0"`
}
type SmartString ¶
type SmartString string
func (*SmartString) String ¶
func (val *SmartString) String() string
default *SmartString.String() to "" to avoid panicking
Click to show internal directories.
Click to hide internal directories.