使用方法详见各工具包下测试用例
安装 | 模块 | 说明 |
---|---|---|
go get gitee.com/asktop_golib/util/abox | abox | 枚举参数容器 |
go get gitee.com/asktop_golib/util/acaptcha | acaptcha | 验证码 |
go get gitee.com/asktop_golib/util/acast | acast | * 数据类型转换:接口转基本类型,map和struct互转等 |
go get gitee.com/asktop_golib/util/aclient | aclient | * 客户端工具 |
go get gitee.com/asktop_golib/util/acron | acron | cron定时任务表达式工具 |
go get gitee.com/asktop_golib/util/afile | afile | * 文件管理 |
go get gitee.com/asktop_golib/util/aform | aform | 表单参数容器 |
go get gitee.com/asktop_golib/util/aguid | aguid | jwt.guid解析 |
go get gitee.com/asktop_golib/util/agzip | agzip | gzip压缩、解压 |
go get gitee.com/asktop_golib/util/aimage | aimage | 图片压缩裁剪工具 |
go get gitee.com/asktop_golib/util/ajson | ajson | * json编解码 |
go get gitee.com/asktop_golib/util/ajwt | ajwt | jwt编解码 |
go get gitee.com/asktop_golib/util/akey | akey | * base64/md5等加密、解密 |
go get gitee.com/asktop_golib/util/alimit | alimit | API接口访问频次限制 |
go get gitee.com/asktop_golib/util/alist | alist | 并发安全list |
go get gitee.com/asktop_golib/util/alru | alru | LRU(Least recently used,最近最少使用)算法 |
go get gitee.com/asktop_golib/util/amap | amap | 并发安全map、有序map |
go get gitee.com/asktop_golib/util/amath | amath | * decimal数值处理 |
go get gitee.com/asktop_golib/util/aotp | aotp | OTP动态口令(基于时间) |
go get gitee.com/asktop_golib/util/aphp | aphp | php编解码 |
go get gitee.com/asktop_golib/util/aqrcode | aqrcode | qrcode二维码生成 |
go get gitee.com/asktop_golib/util/arand | arand | * 随机数、随机字符串、随机MD5等 |
go get gitee.com/asktop_golib/util/areflect | areflect | 反射工具 |
go get gitee.com/asktop_golib/util/arsa | arsa | * rsa工具 |
go get gitee.com/asktop_golib/util/ascan | ascan | 数值scan |
go get gitee.com/asktop_golib/util/aset | aset | 并发安全set |
go get gitee.com/asktop_golib/util/asign | asign | API接口签名验证 |
go get gitee.com/asktop_golib/util/aslice | aslice | * slice切片处理 |
go get gitee.com/asktop_golib/util/asort | asort | slice/map排序 |
go get gitee.com/asktop_golib/util/astress | astress | 压测工具 |
go get gitee.com/asktop_golib/util/astring | astring | * 字符串处理、正则验证 |
go get gitee.com/asktop_golib/util/async | async | sync锁扩展 |
go get gitee.com/asktop_golib/util/atime | atime | * 时间工具、时间偏移、时间固定 |
go get gitee.com/asktop_golib/util/aunique | aunique | * 唯一编码生成 |
go get gitee.com/asktop_golib/util/aurl | aurl | url编解码 |
go get gitee.com/asktop_golib/util/auuid | auuid | uuid生成 |
go get gitee.com/asktop_golib/util/avalid | avalid | * 表单验证工具 |
go get gitee.com/asktop_golib/util/ayaml | ayaml | yaml编解码 |
go get gitee.com/asktop_golib/util/azlib | azlib | zlib压缩 |