Documentation
¶
Overview ¶
Package stringutil provides string utility functions.
Index ¶
- Constants
- func ComputeRecipients(from, to, cc, bcc []string, contactEmail, inboxEmail string, ...) (finalTo, finalCC, finalBCC []string)
- func DedupAndExcludePlusVariants(list []string, inboxEmail string) []string
- func DedupAndExcludeString(list []string, exclude string) []string
- func ExtractConvUUID(email string) string
- func ExtractEmail(s string) (string, error)
- func ExtractReferenceNumber(subject string) string
- func FormatDuration(d time.Duration, includeSeconds bool) string
- func GenerateEmailMessageID(messageID string, fromAddress string) (string, error)
- func GetPathFromURL(u string) (string, error)
- func HTML2Text(html string) string
- func RandomAlphanumeric(n int) (string, error)
- func RandomNumeric(n int) (string, error)
- func RemoveEmpty(s []string) []string
- func RemoveItemByValue(slice []string, value string) []string
- func SanitizeFilename(fName string) string
- func StripConvUUID(email string) string
- func ValidEmail(email string) bool
Constants ¶
View Source
const (
PasswordDummy = "•"
)
Variables ¶
This section is empty.