Documentation ¶
Index ¶
- func BuildMessage(subject string, user *slack.User, htmlBody string, recipients []string) *gomail.Message
- func CompareStringDates(date1 string, date2 string) (int, error)
- func ExtractEmails(text string) string
- func HasString(haystack string, needle string) bool
- func IsFutureStringDate(date string) (bool, error)
- func ParseDate(date string) (time.Time, error)
- func SendEmail(message *gomail.Message) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildMessage ¶
func BuildMessage(subject string, user *slack.User, htmlBody string, recipients []string) *gomail.Message
BuildMessage fill email headers with given data
func CompareStringDates ¶
CompareStringDates compare both given string dates return -1 if date1 before date2 return 0 if date1 equal to date2 return 1 if date1 after date2 return error if dates are invalid
func ExtractEmails ¶
ExtractEmails get the first email sent by a user Slack message string
func IsFutureStringDate ¶
IsFutureStringDate check if giver string date is after today return true if date > today and false otherwise return error if string date is invalid
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.