package main // @title 58team blog backend // @version 1.0 // @description 58team blog's backend // @termsOfService http://swagger.io/terms/ // @contact.name API Support // @contact.url http://www.swagger.io/support // @contact.email support@swagger.io // @license.name Apache 2.0 // @license.url http://www.apache.org/licenses/LICENSE-2.0.html // @host localhost:8080 // @BasePath /api/v1 // @securityDefinitions.basic BasicAuth import ( "58team_blog/docs" "github.com/gin-gonic/gin" "github.com/swaggo/files" "github.com/swaggo/gin-swagger" ) func main() { router := gin.Default() docs.SwaggerInfo.Title = "58team blog" docs.SwaggerInfo.Description = "This is blog 58team" docs.SwaggerInfo.Version = "1.0" docs.SwaggerInfo.Host = "localhost:8080" docs.SwaggerInfo.BasePath = "/api/v1/" docs.SwaggerInfo.Schemes = []string{"http", "https"} router.GET("/swagger/*any", ginSwagger.WrapHandler(swaggerFiles.Handler)) router.Run(":8080") }