ipfans / echo-session

Package echo-session is a middleware that provides session support for echo.
Apache License 2.0
67 stars 36 forks source link

Can not go get github.com/ipfans/echo-session #17

Closed ghost closed 6 years ago

ghost commented 6 years ago

Hi. I get the following error:

[gouser@ec2-goweb ~]$ go get github.com/ipfans/echo-session
go/src/github.com/ipfans/echo-session/redis_store.go:45:46: 
cannot use pool (type *"github.com/garyburd/redigo/redis".Pool) as type *
"github.com/gomodule/redigo/redis".Pool in argument to redistore.NewRediStoreWithPool

on macos high sierra, I get the same error.

Mymacos:~ juliuscaesar$ go get github.com/ipfans/echo-session
# github.com/ipfans/echo-session
go/src/github.com/ipfans/echo-session/redis_store.go:45:46: cannot use pool (type *"github.com/garyburd/redigo/redis".Pool) as type *"github.com/gomodule/redigo/redis".Pool in argument to redistore.NewRediStoreWithPool

Any suggestions? I'm using go version go1.10.1 linux/amd64

zhengxz512 commented 6 years ago

You can change the fifth line of the redis_store.go file. "github.com/garyburd/redigo/redis" ⇒"github.com/gomodule/redigo/redis"