Categorygithub.com/lgs821/utils
modulepackage
1.0.9
Repository: https://github.com/lgs821/utils.git
Documentation: pkg.go.dev

# README

Utils

# Packages

Package base62 implements conversion to and from base62.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

AesDecrypt 解密.
AesEncrypt 加密.
检查用户名.
Copyfile.
创建GUID.
Decimal 保留两位小数点.
No description provided by the author
DecryptByAes Aes 解密.
Dir 获取路径所在目录.
No description provided by the author
EncryptByAes Aes加密 后 base64 再加.
FileExist 检查文件或目录是否存在 如果由 filename 指定的文件或目录存在则返回 true,否则返回 false.
计算文件MD5.
FormatMobile 格式化手机号码.
http GET.
获取用户头像.
GetRandomString 生成随机字符串.
GetSettings 获取json设置.
获取用户目录.
No description provided by the author
InArray 判断是否在数组中.
IsEmpty 判断是否为空值.
IsMobile 判断是否为手机号.
json解码.
json编码.
No description provided by the author
Md5f 文件md5加密.
Md5s 字符串MD5加密.
Mkdir 创建文件夹.
No description provided by the author
PathExist 检查文件或目录是否存在 如果由 filename 指定的文件或目录存在则返回 true,否则返回 false.
PathExists 判断文件夹是否为空.
RandInt64 生成两个数字之间的随机数.
创建随机串.
ReadFile 读取文本文件.
ReadFileByte 读取文件.
ReadFileString 读取文本文件.
四舍五入.
对字符串进行sha1 计算.
Sha1f 文件sha1加密.
Sha1s 字符串sha1加密.
No description provided by the author
截取子串.
切割关键词为html片段.
No description provided by the author
解压 tar.gz.
No description provided by the author
WriteFile 字符串写入文件.
WriteFile 字符串写入文件追加.
写入文件,若目录不存在则自动创建,若存在文件则追加.
写入文件,若目录不存在则自动创建.