From fc95b17f6a5428c41015dddaee6450d24b56f920 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Tue, 13 Dec 2016 10:06:25 +0800 Subject: [PATCH] fix import path. Signed-off-by: Bo-Yi Wu --- example/bindata/example.go | 5 +++-- example/simple/example.go | 5 +++-- static.go | 2 +- static_test.go | 2 +- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/example/bindata/example.go b/example/bindata/example.go index c0beceb..c2efffc 100644 --- a/example/bindata/example.go +++ b/example/bindata/example.go @@ -5,8 +5,9 @@ import ( "strings" assetfs "github.com/elazarl/go-bindata-assetfs" - "github.com/gin-gonic/contrib/static" - "github.com/gin-gonic/gin" + "github.com/gin-contrib/static" + + "gopkg.in/gin-gonic/gin.v1" ) type binaryFileSystem struct { diff --git a/example/simple/example.go b/example/simple/example.go index ef5e895..1bf5a35 100644 --- a/example/simple/example.go +++ b/example/simple/example.go @@ -1,8 +1,9 @@ package main import ( - "github.com/gin-gonic/contrib/static" - "github.com/gin-gonic/gin" + "github.com/gin-contrib/static" + + "gopkg.in/gin-gonic/gin.v1" ) func main() { diff --git a/static.go b/static.go index 6e4050e..dcb8670 100644 --- a/static.go +++ b/static.go @@ -6,7 +6,7 @@ import ( "path" "strings" - "github.com/gin-gonic/gin" + "gopkg.in/gin-gonic/gin.v1" ) type ServeFileSystem interface { diff --git a/static_test.go b/static_test.go index f66176b..f80aadb 100644 --- a/static_test.go +++ b/static_test.go @@ -8,8 +8,8 @@ import ( "path/filepath" "testing" - "github.com/gin-gonic/gin" "github.com/stretchr/testify/assert" + "gopkg.in/gin-gonic/gin.v1" ) func performRequest(r http.Handler, method, path string) *httptest.ResponseRecorder {