fix(example): fix simple web import

This commit is contained in:
Eason Lin
2017-08-04 11:22:19 +08:00
parent 8eeaf9f74c
commit 9f415fef24
3 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ package api
import ( import (
"fmt" "fmt"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/swaggo/swag/example/web" "github.com/swaggo/swag/example/simple/web"
) )
// //
+3 -2
View File
@@ -1,11 +1,12 @@
package ginSwagger package ginSwagger
import ( import (
"github.com/gin-gonic/gin"
"github.com/swaggo/swag"
"golang.org/x/net/webdav" "golang.org/x/net/webdav"
"html/template" "html/template"
"regexp" "regexp"
"github.com/gin-gonic/gin"
"github.com/swaggo/swag"
) )
// WrapHandler wraps `http.Handler` into `echo.HandlerFunc`. // WrapHandler wraps `http.Handler` into `echo.HandlerFunc`.
+3 -2
View File
@@ -1,11 +1,12 @@
package ginSwagger package ginSwagger
import ( import (
"net/http/httptest"
"testing"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/swaggo/gin-swagger/swaggerFiles" "github.com/swaggo/gin-swagger/swaggerFiles"
"net/http/httptest"
"testing"
_ "github.com/swaggo/gin-swagger/example/docs" _ "github.com/swaggo/gin-swagger/example/docs"
) )