forked from mirror/gin
not use dot when import package (#1077)
This commit is contained in:
parent
bc538849eb
commit
18b7c0892d
|
@ -9,15 +9,15 @@ import (
|
|||
"net/http"
|
||||
"sync"
|
||||
|
||||
. "github.com/gin-gonic/gin"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
var once sync.Once
|
||||
var internalEngine *Engine
|
||||
var internalEngine *gin.Engine
|
||||
|
||||
func engine() *Engine {
|
||||
func engine() *gin.Engine {
|
||||
once.Do(func() {
|
||||
internalEngine = Default()
|
||||
internalEngine = gin.Default()
|
||||
})
|
||||
return internalEngine
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue