https://github.com/z1px/framework1
基于gin的框架
https://github.com/z1px/framework1
Last synced: 11 months ago
JSON representation
基于gin的框架
- Host: GitHub
- URL: https://github.com/z1px/framework1
- Owner: z1px
- Created: 2020-08-21T03:48:21.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-11-09T07:12:17.000Z (over 5 years ago)
- Last Synced: 2025-05-29T11:15:28.070Z (about 1 year ago)
- Language: Go
- Size: 1.31 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## 目录
~~~
├─ framework
│ ├─ config // 配置驱动
│ ├─ env // env配置(全局配置,优先级最高)
│ ├── ...
│ ├─ ini // ini配置(项目独立配置)
│ ├── ...
│ ├─ toml // toml配置(全局配置,优先级低于env)
│ ├── ...
│ ├── ...
│ ├── db // 数据库驱动
│ ├─ ip // IP地址解析库
│ ├── ...
│ ├─ mysql // mysql数据库驱动
│ ├── ...
│ ├─ redis // redis数据库驱动
│ ├── ...
│ ├── ...
│ ├─ logs // 日志驱动
│ ├── ...
│ ├─ middleware // 中间件
│ ├── ...
│ ├─ router // 路由
│ ├── ...
│ ├─ util // util工具
│ ├─ crypto // 常用加密工具
│ ├── ...
│ ├─ filepath // 文件或者文件夹操作工具
│ ├── ...
│ ├── format.go // 数据格式化
│ ├── validate.go // 数据验证
│ ├── ...
│ ├─ validator // 验证器
│ ├── ...
│ ├─ app.go // 框架入口文件
~~~
## 参考文档
- [gin 开发文档](https://gin-gonic.com/zh-cn/docs)
- [gin 实例](https://github.com/gin-gonic/examples)
- [GORM 文档](https://gorm.io/zh_CN)
- [validator 文档](https://gopkg.in/go-playground/validator.v10)