# Functions
ArrayIntersection 取交集.
ArrayKeys 获取map里面所有键名.
No description provided by the author
Base64Decode base64解码操作.
Base64Encode base64编码操作.
CamelString xx_yy to XxYy.
No description provided by the author
CopyFile 拷贝文件.
No description provided by the author
No description provided by the author
GenSn 生成单号.
GenTree 将数组map生成tree items 将要排序的数组 addEmptyChild child为空时是否返回空数组,默认true option[0] id别名,默认id option[1] pid别名,默认pid option[2] child别名,默认返回child example:
items := []map[string]interface{}{ {"id": "1", "name": "1"}, {"id": "2", "pid": "1", "name": "2"}, {"id": "3", "pid": "1", "name": "3"}, {"id": "4", "pid": "2", "name": "3"}, }
JsonEncode(GenTree(items, true)).
GetFuncName get function name.
GetIP 获取ip.
HmacSha256.
InArray 判断元素是否在数组中 支持string,int,int8,int16,int32,int64,float32,float64,bool类型.
IsDir 是否文件夹.
No description provided by the author
IsFile 是否文件.
IsNumeric 判断是否是数字.
JsonDecode json解码操作 成功返回interface, 失败返回nil.
JsonDecodeTo json解码操作 失败返回错误,成功返回nil.
JsonEncode json编码操作.
KRand 随机字符串.
MaheHump 将字符串转换为驼峰命名.
Md5 生成md5字符串, binary为是否设置原始16 字符二进制格式,默认为false.
No description provided by the author
NewObjectPtr 复制一个对象,返回指针类型的空对象.
ObjectName 获取对象的类型名称.
No description provided by the author
No description provided by the author
No description provided by the author
随机字符串.
No description provided by the author
RsaDecrypt 私钥解密.
RsaEncrypt 公钥加密.
RsaGenKey 生成私钥/公钥,格式是PKCS#1.
RsaSign 私钥签名.
RsaVerifySign 公钥验签.
Sha1.
SnakeString XxYy to xx_yy.
No description provided by the author
ToInt 转成数字类型 以及浮点四舍五入取整.
ToString 转成字符串 多个字符串可拼接.
No description provided by the author
VarDump 打印参数 (没什么用就是想写).
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Type aliases
No description provided by the author