Documentation ¶
Index ¶
- func BKDRHash(str string) int
- func FormatValidateCodeContent(code string, expire int64) string
- func GenValidateCode(width int) string
- func GetMessageName(m proto.Message) string
- func IsCurWeek(tm int64) bool
- func IsSameDay(tm1, tm2 int64) bool
- func IsToday(tm int64) bool
- func NewProtoMessage(name string) (proto.Message, error)
- func RetryTimes(name string, times int, duration time.Duration, fn func() error) error
- func TodayDateStr() string
- func TodayLeftSecond() int64
- func ValidateEmail(email string) bool
- func ValidatePhone(phone string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatValidateCodeContent ¶
Auth:2021/04/02 20:02:05 周五 cole-cai Desc:
func GenValidateCode ¶
Auth:2021/04/01 23:57:16 周四 cole-cai Desc:生成验证码
func GetMessageName ¶
Auth:2021-03-30 15:43:01 周二 cole-cai Desc:获取message.fullname
func NewProtoMessage ¶
Auth:2021-03-30 15:42:32 周二 cole-cai Desc:根据message name 生成对应obj
func RetryTimes ¶
Auth:2021/04/04 23:06:22 周日 cole-cai Desc:
func TodayDateStr ¶
func TodayDateStr() string
Auth:2021-03-30 15:39:45 周二 cole-cai Desc: eg:20060102
func TodayLeftSecond ¶
func TodayLeftSecond() int64
Auth:2021-03-30 15:42:01 周二 cole-cai Desc:获取当天剩余的秒数
func ValidateEmail ¶
Auth:2021/04/02 20:13:17 周五 cole-cai Desc:校验邮箱地址的合法性
func ValidatePhone ¶
Auth:2021/04/02 20:39:04 周五 cole-cai Desc:校验手机号的合法性
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.