Documentation ¶
Index ¶
- func CheckEmail(mail string) error
- func CheckPhone(code string, phone string) error
- func HumpToUnderline(str string) string
- func ParameterToWhere(str string, cst *time.Location, timeFormat string) string
- func TimeStampStrToTimeStr(tsStr string, cst *time.Location, timeFormat string) (string, error)
- func TimeStampToTimeStr(ts int64, cst *time.Location, timeFormat string) string
- func UnderlineToHump(str string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParameterToWhere ¶
处理字典数组转为MySQL where语句
func TimeStampStrToTimeStr ¶ added in v0.1.3
时间戳字符串转时间字符串
ts string 时间戳字符串10-19位 cst *time.Location 时区 timeFormat string 时间格式'2006-01-02 15:04:05'
func TimeStampToTimeStr ¶ added in v0.1.3
时间戳转时间字符串
ts int64 时间戳10-19位 cst *time.Location 时区 timeFormat string 时间格式'2006-01-02 15:04:05'
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.