package
0.0.0-20230401153839-d62a2a98311c
Repository: https://github.com/gjing1st/gin-admin-frame.git
Documentation: pkg.go.dev
# Functions
Bool @description: 转换为bool类型 @param: @author: GJing @email: [email protected] @date: 2022/12/27 14:40 @success:.
DiffNatureDays @description: 两个日期的相差的自然天数 @param: @author: GJing @email: [email protected] @date: 2022/11/16 11:22 @success:.
Div 数字转字母.
DockerRunCommand @description: docker容器执行宿主机指令 @param: @author: GJing @email: [email protected] @date: 2023/2/11 13:46 @success:.
Float64 @description: 接口类型转float64 @param: any 接口类型 @author: GJing @email: [email protected] @date: 2022/4/22 10:44 @success: float64.
InArray @description: 判断一个字符串是否在数组中 @param: @author: GJing @email: [email protected] @date: 2020/11/13 14:42 @success:.
Int @description: 转int @param: @author: GJing @email: [email protected] @date: 2022/4/22 11:13 @success:.
Int64 @description: 接口类型转int64 @param: any 接口类型 @author: GJing @email: [email protected] @date: 2022/4/22 10:56 @success: int64.
No description provided by the author
No description provided by the author
LogField @description: 日志字段 @param: @author: GJing @email: [email protected] @date: 2022/11/1 15:35 @success:.
Md5 Author: GJing Email: [email protected] Date: 2020/10/23 13:57 Description: md5加密.
PathExists @description: 判断文件是否存在 @param: @author: Zq @email: [email protected] @date: 2022/10/19 17:52 @success:.
ReserveNumber @description: 截取保留小数点后m位,舍去后面位数 @param: f float64 @param: m 保留的位数 @author: GJing @email: [email protected] @date: 2020/11/25 上午 10:31 @success: 返回截取后的字符串.
Round @description: 四舍五入保留n位小数 @param:f 需要处理的float数 @param:n 需要保留的小数位数 @author: GJing @email: [email protected] @date: 2021/1/23 10:36 @success:.
RunCommand @description: 运行系统命令 @param: cmdStr 要运行的命令 @author: GJing @email: [email protected] @date: 2022/9/2 17:46 @success:.
String @description: 转string类型 @param: any 接口类型 @author: GJing @email: [email protected] @date: 2022/4/22 11:11 @success: 字符串.
UnExt @description: 返回文件名称去掉后缀和最后一个`.` @param: fileName 文件名称 @author: GJing @email: [email protected] @date: 2022/7/28 15:39 @success:.
UnzipDir @description: 解压缩 @param:zipFile 压缩文件路径 ./test.zip @param:dir 需要解压到的指定文件夹目录 ex :F:\dumps_copy @author: GJing @email: [email protected] @date: 2021/1/13 15:19 @success:.
VersionCompare @description: 版本比较,v2版本是否大于v1版本 @param: v1 string 当前版本 @param: v2 string 最新版本 @author: GJing @email: [email protected] @date: 2023/2/16 14:41 @success: v2>v1返回true.
WriteFile @description: @param: @author: GJing @email: [email protected] @date: 2022/9/2 17:52 @success:.