Documentation ¶
Index ¶
- func GenerateCardCode() string
- func GenerateCode(count, lenght int) []string
- func GetIPAdress(r *http.Request) string
- func IsContainInt(slice []int, a int) bool
- func StringSliceIsContain(slice []string, str string) bool
- func UnionInt(x, y []int) []int
- func ValiateCount(temp int, tempName string) error
- func ValiateLabel(label string) error
- func ValiateLabelSize(label string, minSize, maxSize int) error
- func ValiateMobileNumber(mobileNumber string) error
- func ValiateMoney(temp float32, tempName string) error
- func ValiateStringSize(temp, tempName string, minSize, maxSize int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateCode ¶
GenerateCode 生成指定数量的固定长度的随机码,全小写,包含字母和数组
func StringSliceIsContain ¶
StringSliceIsContain 字符串数组包含
func ValiateLabelSize ¶
ValiateLabelSize 校验名称大小是否有效
func ValiateMobileNumber ¶
ValiateMobileNumber 校验手机号码是否有效
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.