diff --git a/example/api/api.go b/example/api/api.go index 241215a..23198f4 100644 --- a/example/api/api.go +++ b/example/api/api.go @@ -3,7 +3,7 @@ package api import ( "fmt" "github.com/gin-gonic/gin" - "github.com/swaggo/swag/example/web" + "github.com/swaggo/swag/example/simple/web" ) // diff --git a/swagger.go b/swagger.go index be7754a..9ba09d5 100644 --- a/swagger.go +++ b/swagger.go @@ -1,11 +1,12 @@ package ginSwagger import ( - "github.com/gin-gonic/gin" - "github.com/swaggo/swag" "golang.org/x/net/webdav" "html/template" "regexp" + + "github.com/gin-gonic/gin" + "github.com/swaggo/swag" ) // WrapHandler wraps `http.Handler` into `echo.HandlerFunc`. diff --git a/swagger_test.go b/swagger_test.go index 07c23bd..7815e0e 100644 --- a/swagger_test.go +++ b/swagger_test.go @@ -1,11 +1,12 @@ package ginSwagger import ( + "net/http/httptest" + "testing" + "github.com/gin-gonic/gin" "github.com/stretchr/testify/assert" "github.com/swaggo/gin-swagger/swaggerFiles" - "net/http/httptest" - "testing" _ "github.com/swaggo/gin-swagger/example/docs" )