From 654073aa203a96a879aea61427a98c9a30c9935f Mon Sep 17 00:00:00 2001 From: Songmu Date: Thu, 17 Oct 2019 01:06:04 +0900 Subject: [PATCH] introduce go modules --- go.mod | 5 +++++ go.sum | 11 +++++++++++ redis/conn_test.go | 2 +- redis/pool_test.go | 2 +- redis/pubsub_example_test.go | 2 +- redis/pubsub_test.go | 2 +- redis/redis_test.go | 2 +- redis/reply_test.go | 2 +- redis/scan_test.go | 2 +- redis/script_test.go | 2 +- redis/zpop_example_test.go | 2 +- redisx/connmux.go | 2 +- redisx/connmux_test.go | 4 ++-- redisx/db_test.go | 2 +- 14 files changed, 29 insertions(+), 13 deletions(-) create mode 100644 go.mod create mode 100644 go.sum diff --git a/go.mod b/go.mod new file mode 100644 index 00000000..3ac3e286 --- /dev/null +++ b/go.mod @@ -0,0 +1,5 @@ +module github.com/gomodule/redigo/v3 + +go 1.13 + +require github.com/stretchr/testify v1.4.0 diff --git a/go.sum b/go.sum new file mode 100644 index 00000000..8fdee585 --- /dev/null +++ b/go.sum @@ -0,0 +1,11 @@ +github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk= +github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw= +gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/redis/conn_test.go b/redis/conn_test.go index f5dfb6db..269840df 100644 --- a/redis/conn_test.go +++ b/redis/conn_test.go @@ -28,7 +28,7 @@ import ( "testing" "time" - "github.com/gomodule/redigo/redis" + "github.com/gomodule/redigo/v3/redis" ) type testConn struct { diff --git a/redis/pool_test.go b/redis/pool_test.go index 3864d2a9..5f713a11 100644 --- a/redis/pool_test.go +++ b/redis/pool_test.go @@ -23,7 +23,7 @@ import ( "testing" "time" - "github.com/gomodule/redigo/redis" + "github.com/gomodule/redigo/v3/redis" ) const ( diff --git a/redis/pubsub_example_test.go b/redis/pubsub_example_test.go index 39d0abf8..964d9015 100644 --- a/redis/pubsub_example_test.go +++ b/redis/pubsub_example_test.go @@ -21,7 +21,7 @@ import ( "fmt" "time" - "github.com/gomodule/redigo/redis" + "github.com/gomodule/redigo/v3/redis" ) // listenPubSubChannels listens for messages on Redis pubsub channels. The diff --git a/redis/pubsub_test.go b/redis/pubsub_test.go index 13f3f797..86320e51 100644 --- a/redis/pubsub_test.go +++ b/redis/pubsub_test.go @@ -19,7 +19,7 @@ import ( "testing" "time" - "github.com/gomodule/redigo/redis" + "github.com/gomodule/redigo/v3/redis" ) func expectPushed(t *testing.T, c redis.PubSubConn, message string, expected interface{}) { diff --git a/redis/redis_test.go b/redis/redis_test.go index 5a98f535..239a0b7f 100644 --- a/redis/redis_test.go +++ b/redis/redis_test.go @@ -18,7 +18,7 @@ import ( "testing" "time" - "github.com/gomodule/redigo/redis" + "github.com/gomodule/redigo/v3/redis" ) type timeoutTestConn int diff --git a/redis/reply_test.go b/redis/reply_test.go index c7f9b282..52765d38 100644 --- a/redis/reply_test.go +++ b/redis/reply_test.go @@ -19,7 +19,7 @@ import ( "reflect" "testing" - "github.com/gomodule/redigo/redis" + "github.com/gomodule/redigo/v3/redis" ) type valueError struct { diff --git a/redis/scan_test.go b/redis/scan_test.go index ccd69baa..d2aef486 100644 --- a/redis/scan_test.go +++ b/redis/scan_test.go @@ -22,7 +22,7 @@ import ( "testing" "time" - "github.com/gomodule/redigo/redis" + "github.com/gomodule/redigo/v3/redis" "github.com/stretchr/testify/require" ) diff --git a/redis/script_test.go b/redis/script_test.go index 388e167f..530ca727 100644 --- a/redis/script_test.go +++ b/redis/script_test.go @@ -20,7 +20,7 @@ import ( "testing" "time" - "github.com/gomodule/redigo/redis" + "github.com/gomodule/redigo/v3/redis" ) var ( diff --git a/redis/zpop_example_test.go b/redis/zpop_example_test.go index f7702e03..cf6c9c20 100644 --- a/redis/zpop_example_test.go +++ b/redis/zpop_example_test.go @@ -17,7 +17,7 @@ package redis_test import ( "fmt" - "github.com/gomodule/redigo/redis" + "github.com/gomodule/redigo/v3/redis" ) // zpop pops a value from the ZSET key using WATCH/MULTI/EXEC commands. diff --git a/redisx/connmux.go b/redisx/connmux.go index 6ae1f9d1..afd2f5af 100644 --- a/redisx/connmux.go +++ b/redisx/connmux.go @@ -18,7 +18,7 @@ import ( "errors" "sync" - "github.com/gomodule/redigo/redis" + "github.com/gomodule/redigo/v3/redis" ) // ConnMux multiplexes one or more connections to a single underlying diff --git a/redisx/connmux_test.go b/redisx/connmux_test.go index e035a59f..785c54c6 100644 --- a/redisx/connmux_test.go +++ b/redisx/connmux_test.go @@ -19,8 +19,8 @@ import ( "sync" "testing" - "github.com/gomodule/redigo/redis" - "github.com/gomodule/redigo/redisx" + "github.com/gomodule/redigo/v3/redis" + "github.com/gomodule/redigo/v3/redisx" ) func TestConnMux(t *testing.T) { diff --git a/redisx/db_test.go b/redisx/db_test.go index ead64744..8847f82f 100644 --- a/redisx/db_test.go +++ b/redisx/db_test.go @@ -19,7 +19,7 @@ import ( "errors" "time" - "github.com/gomodule/redigo/redis" + "github.com/gomodule/redigo/v3/redis" ) type testConn struct {