Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cute-angelia/go-utils
工具箱
https://github.com/cute-angelia/go-utils
Last synced: 6 days ago
JSON representation
工具箱
- Host: GitHub
- URL: https://github.com/cute-angelia/go-utils
- Owner: cute-angelia
- Created: 2018-09-18T06:11:01.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-10-30T02:27:25.000Z (2 months ago)
- Last Synced: 2024-10-30T05:01:06.371Z (2 months ago)
- Language: Go
- Homepage:
- Size: 1.29 MB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# go-utils
[![Page Views Count](https://badges.toozhao.com/badges/01EH4J7MXDPXTXC3MCMMZ407PV/green.svg)](https://badges.toozhao.com/badges/01EH4J7MXDPXTXC3MCMMZ407PV/green.svg "Get your own page views count badge on badges.toozhao.com")
go开发工具包,因很多项目都要重复写一些包,如日志,Gorm池,缓存组件
> ps: v1 版本,支持 go version 1.16 及以下
```shell
go get github.com/cute-angelia/go-utils@v1
```包说明:
1. components (功能模块,是工具类的升级版)
2. syntax (语法类)
3. utils (工具类)
4. examples (例子)### 主要模块
| 模块 | |
| ------ | ------------------------------------------------------------ |
| Db | gorm |
| 缓存 | redis, buntdb(file), LRU cache |
| HTTP | API,JWT,vaildation |
| logger | file-rotatelogs, stdout |
| syntax | file,slice,string,time,zip |
| utils | encrypt, orderid,snowflake, idownload, ip, store,task,etc... |
| limit | retry, risk |### Refer:
1. [goutil](https://github.com/gookit/goutil)
2. [gotools](https://github.com/asktop/gotools)
3. [golang-examples](https://github.com/SimonWaldherr/golang-examples)
4. [kit](https://github.com/ardanlabs/kit)
5. [time](https://github.com/jinzhu/now)
6. [go-extend](https://github.com/cute-angelia/go-extend)
7. [yiigo](https://github.com/shenghui0779/yiigo)
8. [downloader](https://github.com/polaris1119/downloader)
9. [写了 30 多个 Go 常用文件操作的示例](https://mp.weixin.qq.com/s/dczWeHW6JWSJMJx1nBx7rA)
10. [lancet](https://github.com/duke-git/lancet)
11