Documentation ¶
Index ¶
- Variables
- func AESDecryption(cipherText string, key string) (string, error)
- func AESEncryption(text string, key string) (string, error)
- func ConvertToDateTime(dateTime string) (time.Time, error)
- func DateRangeValidation(dateStart, dateEnd string) (validDate, validRange bool)
- func DateValidationYYYY_MM_DD(date string) (validDate bool)
- func GenerateRandomNumber(len int, to int, data *string)
- func GenerateSlug(text string) string
- func IsSlug(text string) bool
- func ReadCsvFile(file multipart.File) ([]map[string]string, error)
- func ReformatMDN(mdn string) string
- func ReformatMDNWithPrefiX(mdn string, prefixType int) string
- func ToAscii(input string) (asci string, asciInt int, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( LayoutDefault = "2006-01-02 15:04:05" LayoutDateOnly = "2006-01-02" Loc, _ = time.LoadLocation("Asia/Jakarta") )
View Source
var MDNPrefix08 = 2
View Source
var MDNPrefix62 = 1
Functions ¶
func DateRangeValidation ¶
func GenerateRandomNumber ¶
func GenerateSlug ¶
func IsSlug ¶
IsSlug returns True if provided text does not contain white characters, punctuation, all letters are lower case and only from ASCII range. It could contain `-` and `_` but not at the beginning or end of the text. It should be in range of the MaxLength var if specified. All output from slug.Make(text) should pass this test.
func ReformatMDN ¶
func ReformatMDNWithPrefiX ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.