Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xuguoliangjj/gin-rest
go语言,基于gin框架的rest简单模板
https://github.com/xuguoliangjj/gin-rest
Last synced: 30 minutes ago
JSON representation
go语言,基于gin框架的rest简单模板
- Host: GitHub
- URL: https://github.com/xuguoliangjj/gin-rest
- Owner: xuguoliangjj
- Created: 2018-12-06T09:38:06.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-02-25T01:55:12.000Z (almost 2 years ago)
- Last Synced: 2024-12-01T08:14:33.533Z (about 2 months ago)
- Language: Go
- Size: 1.29 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gin-rest
go语言,基于gin框架的rest简单模板## 启动
```bash
2018/12/07 17:11:21 ====== 配置文件加载成功 ======
2018/12/07 17:11:21 ====== 数据库初始化成功 ======
[GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.[GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
- using env: export GIN_MODE=release
- using code: gin.SetMode(gin.ReleaseMode)[GIN-debug] GET /v1/user/ --> controllers.(*UserController).Index-fm (3 handlers)
[GIN-debug] GET /v1/user/create --> controllers.(*UserController).Create-fm (3 handlers)
[GIN-debug] GET /v1/about/ --> controllers.(*AboutController).Index-fm (3 handlers)
[GIN-debug] Listening and serving HTTP on 0.0.0.0:8081
```