diff --git a/README.md b/README.md index 5fcab47..93c7bb7 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ import ( "time" "github.com/gin-contrib/cors" - "github.com/gin-gonic/gin" + "gopkg.in/gin-gonic/gin.v1" ) func main() { diff --git a/config.go b/config.go index 64319fd..1d1982b 100644 --- a/config.go +++ b/config.go @@ -3,7 +3,7 @@ package cors import ( "net/http" - "github.com/gin-gonic/gin" + "gopkg.in/gin-gonic/gin.v1" ) type cors struct { diff --git a/cors.go b/cors.go index 16550f4..1e4c381 100644 --- a/cors.go +++ b/cors.go @@ -5,7 +5,7 @@ import ( "strings" "time" - "github.com/gin-gonic/gin" + "gopkg.in/gin-gonic/gin.v1" ) // Config represents all available options for the middleware. diff --git a/cors_test.go b/cors_test.go index 1f50425..7878f4c 100644 --- a/cors_test.go +++ b/cors_test.go @@ -6,8 +6,8 @@ import ( "testing" "time" - "github.com/gin-gonic/gin" "github.com/stretchr/testify/assert" + "gopkg.in/gin-gonic/gin.v1" ) func init() { diff --git a/examples/example.go b/examples/example.go index e57303c..99dc232 100644 --- a/examples/example.go +++ b/examples/example.go @@ -4,7 +4,7 @@ import ( "time" "github.com/gin-contrib/cors" - "github.com/gin-gonic/gin" + "gopkg.in/gin-gonic/gin.v1" ) func main() {