使用Gin框架开发的一个例子,使用GORM,INI,Swagger,Redis,Kafka,ElaticSearch等库。
$ git clone https://github.com/fguby/Go-gin.git
- Mysql
- Redis
- Kafka
[server]
App = gin
Port = 8090
RunMode = debug
ReadTimeOut = 60
WriteTimeOut = 60
JwtSecret = love
[mysql]
user = root
password = 123456
host = 127.0.0.1:3306
db = bloc
http://localhost:port/swagger/index.html