- Gen doc
$ make swag-init
- Run app
$ go run cmd/main.go
-
Open Swagger
Swagger UI:
- swagger v1 http://localhost:8080/swagger/v1/index.html
- swagger v2 http://localhost:8080/swagger/v2/index.html
ReDoc UI:
- redoc v1 http://localhost:8080/redoc/v1
- redoc v2 http://localhost:8080/redoc/v2
This project was inspired by swag/example and gin-swagger/example.