Documentation ¶
Index ¶
- func AmountDiv1e12UInt64(amount string, str string) (uint64, bool)
- func AmountMul1e12(amount string, str string) (string, bool)
- func ClickLoginPwdStr(ss string, str string) bool
- func FixThPhone(phone string) string
- func GetClientIP(req *http.Request) string
- func GetEndDaySecond() int64
- func GetLoginPwdStr(str string) string
- func GetMD5Encode(data string) string
- func GetRandomRedisTimeOut(base time.Duration) time.Duration
- func GetSha1Str(str string) string
- func GetTimeUnix() int64
- func GetTimeUnixBefore(duration time.Duration) int64
- func GetTimeUnixMilli() int64
- func GetVIPLevel(VIP string) (bool, int)
- func GetVIPUpdate(VIP string) (bool, int)
- func Int64ToStr(num int64) string
- func Int64ToString(num int64) string
- func IntInSlice(num int, slice []int) (exists bool)
- func IntToStr(num int) string
- func IsThPhone(phone string) bool
- func Print(str string, data ...interface{})
- func QuitSignal(quitFunc func())
- func RandInt64(min, max int64) int64
- func RandStringRunes(n int) string
- func RemoveRep(slc []int) []int
- func RemoveRepByLoop(slc []int) []int
- func RemoveRepByMap(slc []int) []int
- func TimeToYYYYMMDDStr(t int64) string
- func To2Decimal(value float64) float64
- func Uint32ToString(num uint32) string
- func Uint64ToString(num uint64) string
- type DS
- type Switch
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClickLoginPwdStr ¶
ClickLoginPwdStr 校验密码 ss 用户输入密码 str 数据库用户密码
func FixThPhone ¶
func GetClientIP ¶
func GetLoginPwdStr ¶
func GetRandomRedisTimeOut ¶
GetRandomRedisTimeOut 在指定时间上添加一个300秒的随机值
func GetSha1Str ¶
func GetTimeUnixBefore ¶
GetTimeUnixBefore 获取多少时间以前的时间戳
func GetVIPLevel ¶
func GetVIPUpdate ¶
func Int64ToStr ¶
func Int64ToString ¶
func IntInSlice ¶
func QuitSignal ¶
func QuitSignal(quitFunc func())
func RandStringRunes ¶
func TimeToYYYYMMDDStr ¶
TimeToYYYYMMDDStr 格式化时间 t 毫秒时间戳 1620102515929 -> 2021-05-04
func Uint32ToString ¶
func Uint64ToString ¶
Types ¶
type DS ¶
func GetBetweenDates ¶
GetBetweenDates 根据开始日期和结束日期计算出时间段内所有日期 参数为日期格式,如:2020-01-01
Click to show internal directories.
Click to hide internal directories.