Documentation
¶
Index ¶
- func BuildDocument(document Document) string
- func SafeAttachmentName(value string) string
- func SanitizeHTML(raw string, cidAssets map[string]string) string
- func WriteAttachmentAssets(root string, index int, filename string, mediaType string, data []byte) ([]string, error)
- type Attachment
- type Document
- type HeaderField
- type Message
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildDocument ¶
func SafeAttachmentName ¶
Types ¶
type Attachment ¶
type Document ¶
type Document struct {
Subject string
Headers []HeaderField
HTMLBodies []string
TextBodies []string
Attachments []Attachment
CIDAssets map[string]string
LocationAssets map[string]string
}
type HeaderField ¶
type Message ¶
type Message struct {
RootDir string
HTMLPath string
Attachments []Attachment
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.