Documentation ¶
Index ¶
- Constants
- func CheckDate(date string) bool
- func CheckIDCard(idCard string) bool
- func CheckMobile(mobile string, countryCode int) bool
- func CheckPassword(pwd, save string) bool
- func CheckTime(t string) bool
- func ClientIP(r *http.Request, c *websocket.Conn) string
- func Exists(p string) bool
- func IsDir(p string) bool
- func IsFile(p string) bool
- func IsHTTPS(ctx *gin.Context) bool
- func IsMobile(userAgent string) bool
- func MixMobile(mobile string) string
- func NewPassword(pwd string) string
- func NewSequenceID() int64
- func NewUUID() string
- func ParseTime(s string, layout ...string) (time.Time, error)
- func RandomInt64(b ...int) int64
- func RandomMinMax(min, max int64) int64
- func TimeFormat(t time.Time, layout ...string) string
- func XRequestID(ctx *gin.Context) string
Constants ¶
View Source
const IntMax = int(^uint(0) >> 1)
View Source
const IntMin = ^IntMax
Variables ¶
This section is empty.
Functions ¶
func CheckMobile ¶
CheckMobile 校验手机号(只校验大陆手机号)
func XRequestID ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.