package
1.24.1031
Repository: https://github.com/go-xuan/quanx.git
Documentation: pkg.go.dev

# Functions

AddPrefix 添加前缀.
AddSuffix 添加前缀.
AllIndex 获取所有下标,x:.
Between 获取起始字符首次出现和结尾字符末次出现的下标.
CheckIdCard 校验身份证.
Contains 字符串是否包含.
ContainsAny 字符串是否包含.
ContainsBoth 字符串是否包含.
ConvertArabToChinese 阿拉伯转中文 0 <= input < 10^12.
ConvertChinese2Arab 中文数字转阿拉伯数字 0 <= result < 10^12.
Cut 分割字符串(reverse=true从右往左) position:表示分割位置,默认position=1即正序第1处,position=-1即倒序第1处.
Default 用于函数中的不定参数取默认值.
Fill 字符以固定长度填充(默认填充左边).
GetIdCardAge 根据身份证获取年龄.
GetIdCardGender 根据身份证获取性别.
GetIdCardLastCode 获生成身份证最后一位校验码 十七位计算公式:IdCardLastCodes[Sum(x*y)%11] x:表示第i位置上的身份证号码数字值 y:表示第i位置上的加权因子.
HasEmpty 是否有空.
IfNot 不等时取默认值.
IfZero 为空时取默认值.
Index 获取子串下标 position:表示获取位置,默认position=1即正序第1处,position=-1即倒序第1处.
No description provided by the author
Insert 插入字符串.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ParseUrlParams 解析url参数为map.
RegMatch 正则判断.
Reverse 反转.
SubString 字符串截取.
TextSimilarity 文本相似度计算.
No description provided by the author
No description provided by the author
No description provided by the author
ToLowerCamel 转小驼峰.
ToSnake 转下划线.
ToUpperCamel 转大驼峰.
No description provided by the author
No description provided by the author

# Constants

中文.
日期格式.
日期时间.
邮箱地址格式.
英文.
数字.
数字.
小写.
小驼峰.
密码格式.
手机号格式.
蛇形.
时间格式.
大写.
大驼峰.

# Variables

No description provided by the author

# Structs

PowerLevel 位数级别.