Skip to content

Commit

Permalink
not use dot when import package (#1077)
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkerou authored and appleboy committed Aug 25, 2017
1 parent bc53884 commit 18b7c08
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ginS/gins.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 18b7c08

Please sign in to comment.