Documentation ¶
Index ¶
- func DecodeB64(sToDecode string) string
- func EncodeB64(s string) string
- func GetBearerToken(authHeader string) (token string)
- func GetExtensionFromContentType(mime string) string
- func GetFormErrorsJsonStringBodyReturn(success bool, messageKey string, formErrors map[string]interface{}) string
- func GetJsonStringBodyReturn(success bool, data map[string]interface{}) string
- func GetRandomString(n int, prefix string) string
- func GetSimpleJsonStringBodyReturn(success bool, messageKey string, messageParameters map[string]string) string
- func GetWeirdString() string
- func Implode(mapStrStr map[string]string, del string) string
- func InArrayStr(val string, array []string) (exists bool, index int)
- func MaskString(s string, masker string) string
- func PrintMilestone(mapStore map[string]interface{}, s string)
- func ProcessTemplate(messageParameters map[string]string, emailText string, emailHTML string, ...) (string, string, string)
- func SanitizeFilename(s string) string
- func SendEmailSmtp(from string, password string, to string, subject string, body string, ...) error
- func SubStr(str string, start int, length int) string
- func TimeDiff(a, b time.Time) (year, month, day, hour, min, sec int)
- func UcFirst(str string) string
- func UcWords(str string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBearerToken ¶
func GetJsonStringBodyReturn ¶
func GetRandomString ¶
via mailgun vendor randomString generates a string of given length, but random content. All content will be within the ASCII graphic character set. (Implementation from Even Shaw's contribution on http://stackoverflow.com/questions/12771930/what-is-the-fastest-way-to-generate-a-long-random-string-in-go).
func GetWeirdString ¶
func GetWeirdString() string
func MaskString ¶
func PrintMilestone ¶
func ProcessTemplate ¶
func SanitizeFilename ¶
func SendEmailSmtp ¶
func TimeDiff ¶
thanks http://stackoverflow.com/questions/36530251/golang-time-since-with-months-and-years
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.