Documentation
¶
Index ¶
- func CreateMessagesFromFile(filePath string, recipients []string) (map[string]string, error)
- func CreateMessagesFromString(message string, recipients []string) map[string]string
- func GetDecodeFunc(extension string) (file_readers.DecodeFunc, error)
- func GetFileExtension(filename string) string
- func GetMessageContent(messageStr, messageFilePath string) (string, error)
- func ParseTemplateAndData(templatePath, dataPath string) (map[string]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateMessagesFromFile ¶
CreateMessagesFromFile creates a map of messages for multiple recipients from a file
func CreateMessagesFromString ¶
CreateMessagesFromString creates a map of messages for multiple recipients from a single message string
func GetDecodeFunc ¶
func GetDecodeFunc(extension string) (file_readers.DecodeFunc, error)
GetDecodeFunc returns the decoder function for a given file extension
func GetFileExtension ¶
GetFileExtension returns the extension of a file without the leading dot
func GetMessageContent ¶
GetMessageContent reads message content from either a string or file and processes it with RawToHTML Returns the processed message content or an error if file reading fails
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.