From 9f415fef24d281de29c0e00f8fb78f90d2dba9e6 Mon Sep 17 00:00:00 2001 From: Eason Lin Date: Fri, 4 Aug 2017 11:22:19 +0800 Subject: [PATCH] fix(example): fix simple web import --- example/api/api.go | 2 +- swagger.go | 5 +++-- swagger_test.go | 5 +++-- 3 files changed, 7 insertions(+), 5 deletions(-) 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" )