package
1.5.6
Repository: https://github.com/inis-io/go-utils.git
Documentation: pkg.go.dev

# Functions

AES - 对称加密.
ArrayDiff - 数组差集.
ArrayEmpty - 数组去空.
ArrayFilter - 数组过滤.
ArrayIntersect - 交集.
ArrayMapWithField - 数组Map保留指定字段.
ArrayRemove - 数组删除.
ArrayReverse - 数组反转.
ArrayUnique - 数组去重.
Async - 异步数据.
Calc - 计算器.
Caller 获取代码调用者.
Curl - 发起请求 - 入口.
No description provided by the author
Default - 设置默认值.
No description provided by the author
EnvToml - 读取配置文件.
File - 文件系统.
ForMap - 遍历数组,返回新数组.
No description provided by the author
InArray - 判断某个值是否在数组中.
InMapKey 在 map key 中.
InMapValue 在 map value 中.
Lang 实例化.
MapKeys - 获取 map 的所有 key.
MapMerge map合并.
MapMergeString map合并.
MapToURL - 无序 map 转 有序 URL.
MapTrim - 去除 map 中的空值.
MapValues - 获取 map 的所有 value.
MapWithField - 从map中提取指定字段.
MapWithoutField - 从map中排除指定字段.
NewFileCache - 新建文件缓存* * @param dir 缓存目录 * @param prefix 缓存名前缀 * @return *FileCacheClient, error * @example: * 1.
Redirect - 获取重定向地址.
Replace - 字符串替换.
Ternary - 三元运算符.
ValidateRules - 验证规则* * @rule - 内置规则 - 如下: * required:必填 * min:最小值 * max:最大值 * email:是否为邮箱 * number:是否为数字 * float:是否为浮点数 * bool:是否为布尔值 * slice:是否为切片 - (数组) * jsonStr:是否为 JSON 字符串 * accepted:验证某个字段是否为为 yes, on, 或是 1 * date:是否为日期 * alpha:只能包含字母 * alphaNum:只能包含字母和数字 * alphaDash:只能包含字母、数字和下划线_及破折号- * chs:只能包含汉字 * chsAlpha:只能包含汉字、字母 * chsAlphaNum:只能包含汉字、字母和数字 * chsDash:只能是汉字、字母、数字和下划线_及破折号- * cntrl:是否为控制字符 - (换行、缩进、空格) * graph:是否为可见字符 - (除空格外的所有可打印字符) * lower:是否为小写字母 * upper:是否为大写字母 * space:是否为空白字符 - (空格、制表符、换页符等) * xdigit:是否为十六进制字符 - (0-9、a-f、A-F) * activeUrl:是否为有效的域名或者IP * url:是否为有效的URL地址 * ip:是否为IP地址 * mobile:是否为手机号 * idCard:是否为身份证号 * MacAddr:是否为MAC地址 * zip:是否为邮政编码 **/.
No description provided by the author

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Get - 获取.
Hash - 哈希加密.
No description provided by the author
Is - 是否为.
Json - JSON 处理.
No description provided by the author
Mask - 脱敏.
No description provided by the author
No description provided by the author
Net - 网络.
Parse - 解析.
Password - 密码.
Rand - 随机数.
No description provided by the author
Struct - 操作结构体.
Unity - 统一规范化.
No description provided by the author
Validate - 验证器入口.
Version - 版本.

# Structs

AESRequest - 请求输入.
AESResponse - 响应输出.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
CurlClass - Curl 结构体.
CurlRequest - 发起请求的结构体.
CurlResponse - 响应的结构体.
No description provided by the author
No description provided by the author
No description provided by the author
FileRequest - File 请求.
FileResponse - File 响应.
FileStruct - File 结构体.
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
Resp - 返回数据结构.
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