From 858b4d41a506ee9aac9187c970479ce4b39cf340 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Mon, 31 Oct 2016 08:52:00 +0800 Subject: [PATCH] import stable version of gin. Signed-off-by: Bo-Yi Wu --- README.md | 2 +- config.go | 2 +- cors.go | 2 +- cors_test.go | 2 +- examples/example.go | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) 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() {