From e6039c810b6ed10a8e7983e4e5d68e20afc22cf6 Mon Sep 17 00:00:00 2001 From: Songmu Date: Tue, 8 Oct 2019 23:35:28 +0900 Subject: [PATCH] migrate to gomodule/redigo from garyburd/redigo and introduce go modules --- examples/fileserver.go | 2 +- go.mod | 8 ++++++++ go.sum | 4 ++++ limiter_test.go | 4 ++-- redigostore/redigostore.go | 2 +- 5 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 go.mod create mode 100644 go.sum diff --git a/examples/fileserver.go b/examples/fileserver.go index fb31480..9a58f2d 100644 --- a/examples/fileserver.go +++ b/examples/fileserver.go @@ -5,7 +5,7 @@ import ( "net/http" "time" - "github.com/garyburd/redigo/redis" + "github.com/gomodule/redigo/redis" "github.com/mash/go-limiter" "github.com/mash/go-limiter/redigostore" ) diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..ba3cb7b --- /dev/null +++ b/go.mod @@ -0,0 +1,8 @@ +module github.com/mash/go-limiter + +go 1.13 + +require ( + github.com/gomodule/redigo v1.7.0 + github.com/soh335/go-test-redisserver v0.1.0 +) diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..ac43fd8 --- /dev/null +++ b/go.sum @@ -0,0 +1,4 @@ +github.com/gomodule/redigo v1.7.0 h1:ZKld1VOtsGhAe37E7wMxEDgAlGM5dvFY+DiOhSkhP9Y= +github.com/gomodule/redigo v1.7.0/go.mod h1:B4C85qUVwatsJoIUNIfCRsp7qO0iAmpGFZ4EELWSbC4= +github.com/soh335/go-test-redisserver v0.1.0 h1:FZYs/CVmUFP1uHVq7avxU+HpRoFIv2JWzhdV/g2Hyk4= +github.com/soh335/go-test-redisserver v0.1.0/go.mod h1:vofbm8mr+As7DkCPPNA9Jy/KOA6bBl50xd0VUkisMzY= diff --git a/limiter_test.go b/limiter_test.go index b1a8fde..84538c8 100644 --- a/limiter_test.go +++ b/limiter_test.go @@ -9,9 +9,9 @@ import ( "testing" "time" - "github.com/garyburd/redigo/redis" + "github.com/gomodule/redigo/redis" "github.com/mash/go-limiter/redigostore" - "github.com/soh335/go-test-redisserver" + redistest "github.com/soh335/go-test-redisserver" ) // will be nil if we're testing on wercker diff --git a/redigostore/redigostore.go b/redigostore/redigostore.go index fca8f6a..f819da1 100644 --- a/redigostore/redigostore.go +++ b/redigostore/redigostore.go @@ -3,7 +3,7 @@ package redigostore import ( "time" - "github.com/garyburd/redigo/redis" + "github.com/gomodule/redigo/redis" ) type pool interface {