fix import in examples (#70)
This commit is contained in:
@@ -41,7 +41,7 @@ package main
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
"github.com/swaggo/files"
|
swaggerFiles "github.com/swaggo/files"
|
||||||
"github.com/swaggo/gin-swagger"
|
"github.com/swaggo/gin-swagger"
|
||||||
|
|
||||||
_ "github.com/swaggo/gin-swagger/example/basic/docs" // docs is generated by Swag CLI, you have to import it.
|
_ "github.com/swaggo/gin-swagger/example/basic/docs" // docs is generated by Swag CLI, you have to import it.
|
||||||
@@ -84,7 +84,7 @@ package main
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
"github.com/swaggo/files"
|
swaggerFiles "github.com/swaggo/files"
|
||||||
"github.com/swaggo/gin-swagger"
|
"github.com/swaggo/gin-swagger"
|
||||||
|
|
||||||
_ "./docs" // docs is generated by Swag CLI, you have to import it.
|
_ "./docs" // docs is generated by Swag CLI, you have to import it.
|
||||||
|
|||||||
Reference in New Issue
Block a user