b7c3d256ebd4f35e59a65dbbbcea252ebd02bf99
go-gin-api
[Go 项目实战] 实现一个开箱即用的 API 框架的轮子,这个轮子是基于 Gin 框架的基础上开发的。
持续更新...
Features
- 使用 go modules 初始化项目
- 安装 Gin 框架
- 规划项目目录
- 参数验证
- 模型绑定和验证
- 自定义验证器
- 路由中间件
- 签名验证
- MD5 组合拳
- AES 对称加密
- RSA 非对称加密
- 日志记录
- 异常捕获
- Jaeger 链路追踪
- 签名验证
- 自定义告警
- 邮件
- 微信
- 短信
- 钉钉
- gRPC
- ...
Download
git clone https://github.com/xinliangnote/go-gin-api.git
Quick start
Requirements
- Go version >= 1.12
- Global environment configure (Linux/Mac)
export GO111MODULE=on
export GOPROXY=https://goproxy.io
Build & Run
cd go-gin-api
go run main.go
Test demo
curl -X POST http://127.0.0.1:9999/product
Documents
Learning together
Description
Languages
Go
59.8%
HTML
29.8%
JavaScript
10%
Batchfile
0.2%
Shell
0.1%
Other
0.1%

