Versions in this module Expand all Collapse all v0 v0.6.0 May 15, 2024 Changes in this version + func LastMonth() (string, string) + func LastWeek() (string, string) + func Yesterday() time.Time v0.5.1 Mar 6, 2022 v0.5.0 Mar 6, 2022 Changes in this version + func StringsContains(array []string, s string) bool v0.4.1 Oct 31, 2021 Changes in this version + func Max(first float64, rest ...float64) float64 + func Min(first float64, rest ...float64) float64 v0.4.0 Oct 31, 2021 v0.3.1 May 3, 2021 Changes in this version + const TIMESTAMPZONE + func StructToMap(item interface{}) map[string]interface v0.3.0 May 2, 2021 Changes in this version + func StringMap(d interface{}) (map[string]interface{}, error) v0.2.0 Apr 26, 2021 Changes in this version + const RegexpPatternMobile v0.1.0 Mar 15, 2021 Changes in this version + const DD + const Day + const DaySecond + const HH + const HHMM + const HHMMSS + const MM1 + const MM2 + const MMSS + const Month + const MonthSecond + const RegexpPatternEmail + const SS + const YYYY + const YYYYMMDD + const YYYYMMDDHH + const YYYYMMDDHHMM + const YYYYMMDDHHMMSS + const Year + const YearSecond + func AesDecrypt(crypted, key []byte) ([]byte, error) + func AesEncrypt(origData, key []byte) ([]byte, error) + func FloatToInt(f float64) int64 + func FloatToString(f float64) string + func GenRsaKey(bits int) error + func InsertByte(source []byte, i uint8, idx int64) []byte + func IntDateFmt(date int64, inFmt string, outFmt string) string + func IntToFloat(i int64) float64 + func IntToString(i int64) string + func IsDate(fmt, str string) bool + func PKCS7Padding(ciphertext []byte, blockSize int) []byte + func PKCS7UnPadding(origData []byte) []byte + func RandInt(max int64, min int64) int64 + func RandIntString(n int) string + func RandLowcase(n int) string + func RandMix(n int) string + func RandString(n int, num bool, lowcase bool, upcase bool) string + func RandUpcase(n int) string + func Regexp(pattern string, s string) bool + func RsaDecrypt(ciphertext []byte) ([]byte, error) + func RsaEncrypt(data []byte) ([]byte, error) + func RsaSign(data []byte) ([]byte, error) + func RsaSignVer(data []byte, signature []byte) error + func StringDateFmt(date, inFmt, outFmt string) string + func StringToFloat(s string) float64 + func StringToFloatDecimal(s string, exp int32) float64 + func StringToInt(s string) int64 + func UnixString() string