modulepackage
0.0.0-20211024021052-661647b05886
Repository: https://github.com/braior/brtool.git
Documentation: pkg.go.dev
# README
brtool
basic tools
arrary
# Functions
CurrentDir 获取当前路径.
GenRandomString 生成随机字符串 length 生成长度 specialChar 是否生成特殊字符.
GetMD5 生成32位MD5.
ImageToBytes 图片转换为字节数组 filepath 图片的路径.
ImageType 探测图片的类型 imgBytes 图片字节数组.
ImgBytesToImage []byte生成图片 imgbytes 图片[]byte数组 filepath 文件路径名称.
InstringSlice 判断一个元素是否在string类型的slice里面.
IsExist 文件或目录是否存在 return false 表示文件不存在.
NewBoltDB 初始化数据库对象.
NewBRFileLog 返回BRFileLog对象和目录创建失败error.
NewEmailClient 返回一个邮件客户端 host smtp地址 username 用户名 password 密码 port 端口.
No description provided by the author
NewJWToken 创建JWToken对象.
# Structs
BoltDB DB 操作.
BRFileLog 定义.
BRFileLogger BRFileLogger.
DingTalkClient 钉钉机器人client.
DingTalkMessage 钉钉消息结构体.
DingTalkResponse 。。。.
EmailClient ...
EmailMessage struct.
JWTToken jwt token.