Documentation
¶
Index ¶
- func AreEqualStrings(items1, items2 []string) bool
- func CollapseWhiteSpaces(value string) string
- func ContainsStringIgnoreCase(items []string, item string) bool
- func GetCurrentTimestamp() string
- func GetMarkdownLinkPath(linkPath, baseDir string) string
- func GetTimestamp(moment time.Time) string
- func GetValidFileName(name string) string
- func JoinMarkdownLinks(links ...string) string
- func MakeMarkdownImageLink(linkTitle, imagePath, baseDir string) string
- func MakeMarkdownLink(linkTitle, linkPath, baseDir string) string
- func PadIntLeft(value, width int) string
- func PadStringLeft(value string, width int) string
- func PadStringRight(value string, width int) string
- func ParseTimestamp(timestamp string) (time.Time, error)
- func RemoveItemIgnoreCase(items []string, item string) []string
- func RenameItemIgnoreCase(items []string, oldItem, newItem string) []string
- func SplitByRegexp(value string, re *regexp.Regexp) []string
- func TitleFirstLetter(s string) string
- func WeekDelta(baseValue, value time.Time) int
- func WeekEnd(value time.Time) time.Time
- func WeekStart(value time.Time) time.Time
- type MailSender
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AreEqualStrings ¶
func CollapseWhiteSpaces ¶
func GetCurrentTimestamp ¶
func GetCurrentTimestamp() string
func GetMarkdownLinkPath ¶
func GetTimestamp ¶
func GetValidFileName ¶
func JoinMarkdownLinks ¶
func MakeMarkdownImageLink ¶
func MakeMarkdownLink ¶
func PadIntLeft ¶
func PadStringLeft ¶
func PadStringRight ¶
func RemoveItemIgnoreCase ¶
func RenameItemIgnoreCase ¶
func TitleFirstLetter ¶
Types ¶
type MailSender ¶
type MailSender struct {
// contains filtered or unexported fields
}
func NewMailSender ¶
func NewMailSender(smtpServer, smtpUser, smtpPassword, from string) *MailSender
Click to show internal directories.
Click to hide internal directories.