sessions icon indicating copy to clipboard operation
sessions copied to clipboard

cannot use pool Error how to Fixed

Open buYoung opened this issue 3 years ago • 0 comments

github.com/gin-contrib/sessions/redis

........\go\src\github.com\gin-contrib\sessions\redis\redis.go:52:42: cannot use pool (type *"github.com/gomodule/redigo/redis".Pool) as type *"github.com/garyburd/redigo/redis".Pool in argument to redistore.NewRediStoreWithPool

If you have this error, please refer to the following.

first ur Go folder\github.com\gin-contrib\sessions\redis\redis.go 6 lin edit echo "github.com/boj/redistore" -> "gopkg.in/boj/redistore.v1"

Add libraries as go get gopkg.in/boj/redistore.v1

finally ur Go folder\gopkg.in\boj\dedistore.v1\redistore.go 18 line edit

"github.com/garyburd/redigo/redis" -> "github.com/gomodule/redigo/redis"

And proceed with the build. I solved it like this.

buYoung avatar Jul 29 '20 03:07 buYoung