From 96b488d1c4ed1d46a9008b6da8258626b6fa7c4a Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Fri, 10 Mar 2017 20:47:16 -0600 Subject: [PATCH] fix: replace gopkg with github. (#1) --- README.md | 3 +-- example/bindata/example.go | 3 +-- example/simple/example.go | 3 +-- static.go | 2 +- static_test.go | 2 +- 5 files changed, 5 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 22c9192..d32247c 100644 --- a/README.md +++ b/README.md @@ -32,8 +32,7 @@ package main import ( "github.com/gin-contrib/static" - - "gopkg.in/gin-gonic/gin.v1" + "github.com/gin-gonic/gin" ) func main() { diff --git a/example/bindata/example.go b/example/bindata/example.go index c2efffc..692e238 100644 --- a/example/bindata/example.go +++ b/example/bindata/example.go @@ -6,8 +6,7 @@ import ( assetfs "github.com/elazarl/go-bindata-assetfs" "github.com/gin-contrib/static" - - "gopkg.in/gin-gonic/gin.v1" + "github.com/gin-gonic/gin" ) type binaryFileSystem struct { diff --git a/example/simple/example.go b/example/simple/example.go index 1bf5a35..2bbec7f 100644 --- a/example/simple/example.go +++ b/example/simple/example.go @@ -2,8 +2,7 @@ package main import ( "github.com/gin-contrib/static" - - "gopkg.in/gin-gonic/gin.v1" + "github.com/gin-gonic/gin" ) func main() { diff --git a/static.go b/static.go index dcb8670..6e4050e 100644 --- a/static.go +++ b/static.go @@ -6,7 +6,7 @@ import ( "path" "strings" - "gopkg.in/gin-gonic/gin.v1" + "github.com/gin-gonic/gin" ) type ServeFileSystem interface { diff --git a/static_test.go b/static_test.go index f80aadb..f66176b 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 {