package
1.7.0
Repository: https://github.com/soedev/soelib.git
Documentation: pkg.go.dev

# Functions

AddJSONFormGormTag 添加json格式.
CalcOddment 取零方式计算结果.
CheckHaveSubString 检查被分割符分割的字符串中是否包含制定的字符串.
CheckIP 校验ip.
CheckMobileNumber 验证手机号码,11位数字,1开通,第二位数必须是3456789这些数字之一.
CheckVer 转换成正确的版本号.
ChineseToAbc 将中文字符串转拼音首字母.
NumberToChinese 将阿拉伯数字转中文数字.
CompareTime 比较2个时间.
ConvertToDatetime 格式化.
ConvertTotime 根据时间格式转化.
CopyStruct 结构体复制(同一字段需要类型相同) user:=&User{ Name: "qweqwe", Age: 22, }user2:=&User2{}CopyStruct(user,user2).
No description provided by the author
DateBetweenMinutes 字符串时间与当前时间相差分钟数.
DateStringIncDay 字符日期加 天数.
DateTimeBetweenMinutes 时间的相距分钟.
DateTimeBetweenSeconds 时间的相距秒数.
日期格式日期加 天数.
日期 加减 指定时间 incTime格式: + - 2h(小时) + - 2m(分钟)incTime 合法的单位有"ns"纳秒,"us","µs"、"ms"毫秒、"s"秒、"m"分钟、"h"小时.
日期 加减 指定时间 incTime格式: + - 2h(小时) + - 2m(分钟)incTime 合法的单位有"ns"纳秒,"us","µs"、"ms"毫秒、"s"秒、"m"分钟、"h"小时.
DatetimeToString 时间转字符串.
DateTimeToTStringDateTime 时间格式转为字符串.
DateTimeToTStringDateTime 时间格式转为字符串.
DateToStringDate 时间格式转为字符串.
No description provided by the author
Decimal 保留两位小数.
DoZlibCompress 进行zlib压缩.
DoZlibUnCompress 进行zlib解压缩.
FindColumns 根据数据源和表名查询字段.
FindTables 根据数据源查询表.
FindUpperElement 找到字符串中大写字母的列表,附属于HumpToUnderLine.
FormatDate 日期转字符串.
FormatterStr 将'0,1,2'转换成'0','1','2'.
通过字符日期获得 时间部分.
通过字符日期获得 时间部分.
GBKEncoder 字符串转成 GBK 格式.
GBKEncoderUseLen 字符串转成 GBK格式 并截取固定长度.
GetBusinessDateDTO 获取营业时间 startDate(开始日期),endDate(结束日期),startTime(开始营业时间),endTime(结束营业时间).
GetBussinessDateTime 获取营业时间.
获取指定年月的天数.
从JDBC连接串中取得服务器和数据库名 */.
GetPageDTO 手动分页.
GetSecondDiffer 获取相差时间.
GetShopBussinessDateTime 获取店内营业时间算法.
Getsign 生成验签.
读取主板序列号 GetSystemUUID.
No description provided by the author
GoFunc GoFunc.
GoTimeout GoTimeout.
GoTimeoutFunc GoTimeoutFunc.
HumpToUnderLine 驼峰转下划线.
IsMatchTime 判断时间是否在另一时间段内.
IsNearStartTime 检查时间是否接近开始时间.
检测对象是否未 nil.
ListDuplicateRemoval 集合去重.
LoadJsonConfig 读取json 格式的配置文件 转成对象.
No description provided by the author
NumberToChinese 将阿拉伯数字转中文数字.
ParseInt ParseInt.
PathExists 检查路径是否存在.
No description provided by the author
SendMsgToWorkWx 发送信息到企业微信会话.
自定义排序字段,参考SortBodyByCreateTime中的传入函数.
按照createtime排序,需要注意是否有createtime.
Split 增强型Split,对 a,,,,,,,b,,c 以","进行切割成[a,b,c].
Split2 附属于Split,可独立使用.
基础的字符串类型转换.
StringDateTimeToDateTime 字符串转为时间格式.
StringDateTimeToDateTime 字符串转为时间格式.
string数组转string 例:[]string{"1", "2", "3", "4"} ==> '1','2','3','4'.
No description provided by the author
StringToDateTime 字符串转时间格式.
StrRightIsLenThan 如果超出指定大小将从左边截取.
StrRightIsLenThan 如果超出指定大小将从右边截取.
Struct2map Struct转换成Map.
SubstrByByte 按字节截取字符串.
TableToStruct 根据数据源和表名生成结构体.
TenToTwo 二进制转十进制.
TimeBetweenDays 计算天数差.
No description provided by the author
根据不同时间(年,月,日) 计算新时间.
TimeSubDays 计算两个日期间相差多少天.
ToNullFloat64 格式化.
ToNullInt64 格式化.
ToNullString 格式化.
UnderLineToHump 下划线转驼峰.
ValidSign 签名效验正确性.
No description provided by the author
WriteJsonConfig 把json 对象 写入硬盘文件.

# Constants

DefaultRegChatID 插件注册预警群 16613216078422402691.
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
SAAS 软件通知群.
内网访问 微信的url.
WorkWxAPIPath 企业微信rest路径.
WorkWxRestTokenStr 企业微信访问token.
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
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

# Variables

ErrGoTimeout ErrGoTimeout.
No description provided by the author

# Structs

No description provided by the author
ChatMsg 企业微信消费.
ColorHex 颜色16进制值.
No description provided by the author
InquiryDateDTO 返回时间.
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author