package
0.0.0-20240211120341-b0c7319c37b4
Repository: https://github.com/kzeeyang/utils.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
No description provided by the author
* * base64 解码 * @method func * @param {[type]} t *Tools [description] * @return {[type]} [description] */.
No description provided by the author
No description provided by the author
No description provided by the author
传入开始时间,计算结束时间.
ConvertToViewTree 转换树形数据为视图树数据.
No description provided by the author
FormatTime 时间戳格式化时间.
No description provided by the author
No description provided by the author
GetImg 根据图片路径生成图片,待优化函数.
获取服务器IP.
GetMd5 md5加密字符串.
生成随机字符串.
No description provided by the author
No description provided by the author
GetTimeStamp 获取时间戳.
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
IsError 检测是否有Error.
IsFalse 检测字段是否为 空 0 nil.
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
layui 后台返回需要的json格式.
No description provided by the author
* * 控制台打印测试 * @method log * @param {[type]} s string [description] * @return {[type]} [description] */.
* * md5 加密 * @method MD5 * @param {[type]} data string [description] */.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
* * 单例模式 实现redis连接 */.
No description provided by the author
new versionCompare.
No description provided by the author
No description provided by the author
NowDate 当前时间 Y m d H:i:s.
No description provided by the author
No description provided by the author
PageUtil ...
* * 转换浮点数为string * @method func * @param {[type]} t * Tools [description] * @return {[type]} [description] */.
* * string转换int * @method parseInt * @param {[type]} b string [description] * @return {[type]} [description] */.
* * int转换string * @method parseInt * @param {[type]} b string [description] * @return {[type]} [description] */.
No description provided by the author
Password 生成密码.
获取当前工作目录.
No description provided by the author
算法1.
算法2判断上一个数,如果上一个数为真,返回真,否则返回假.
No description provided by the author
普通json格式.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
TemplateCode `{"code":"123456"}`.
No description provided by the author
No description provided by the author
No description provided by the author
Slice2Tree 将切片数据转换为树形数据.
字符串转数组.
Struct2Map 结构体转map.
* * 结构体转换成map对象 * @method func * @param {[type]} t *Tools [description] * @return {[type]} [description] */.
* * 结构体转成json 字符串 * @method StruckToString * @param {[type]} data interface{} [description] */.
* * 字符串截取 * @method func * @param {[type]} t *Tools [description] * @return {[type]} [description] */.
bootstrap table 返回json.
将时间转换为人类可阅读的格式.
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

# Constants

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
database.
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
grpc 调用失败.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
header 相关错误码.
No description provided by the author
No description provided by the author
No description provided by the author
http外部调用失败.
http内部调用失败.
No description provided by the author
JSON解析失败.
json.
No description provided by the author
parameter.
address.
rbac.
rpc.
No description provided by the author
No description provided by the author
session.
外部传入参数错误.
No description provided by the author
type.
No description provided by the author
verification code.
No description provided by the author
ERROR_NOT_EXIST_ARTICLE
No description provided by the author
No description provided by the author
etcd相关操作错误码.
No description provided by the author
No description provided by the author
数据字段重复.
数据字段为空.
IO文件解析错误码.
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
auto complete.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
header.
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
session.
No description provided by the author
No description provided by the author
No description provided by the author
redis 调用失败.
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
session 相关错误码.
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

No description provided by the author
No description provided by the author
No description provided by the author
常用的状态code,写入里面.
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
日期,兼容java习惯.
No description provided by the author
No description provided by the author
Page ...
PageData ...
* 队列实现 */.