OpenGin is a WebApi template based on Gin & OpenApi3.0.
| Category | Package |
|---|---|
| Gin | github.com/gin-gonic/gin |
| Cors | github.com/gin-contrib/cors |
| GORM | gorm.io/gorm |
| Air | github.com/cosmtrek/air@latest |
| Golang-jwt | github.com/golang-jwt/jwt/v4 |
| WebSocket | github.com/gorilla/websocket |
| RabbitMQ | github.com/rabbitmq/amqp091-go |
| Redis | github.com/go-redis/redis/v9 |
| SwaggerUI | https://github.com/swagger-api/swagger-ui/tree/master/dist |
Install
go install github.com/cosmtrek/air@latestHow to use
airdocker build -f .\docker\Dockerfile -t roll:1 .