You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
github.com/go-session/redis (download)
github.com/go-redis/redis (download)
github.com/go-session/session (download)
github.com/go-session/redis
# github.com/go-session/redis
../../../go/src/github.com/go-session/redis/options.go:75:3: cannot use o.Dialer (type func() (net.Conn, error)) as type func(context.Context, string, string) (net.Conn, error) in field value
Expected result:
go-session/redis is installed.
The text was updated successfully, but these errors were encountered:
I think this issue cause by go-redis/redis had change the struct Options's function Dialer .
the old is Dialer func() (net.Conn, error)
now is Dialer func(ctx context.Context, network, addr string) (net.Conn, error)
I have 2 solutions.
remove local go-redis package, then go get github.com/go-redis/[email protected]
Command:
go get -u -v github.com/go-session/redis
Actual result:
Expected result:
go-session/redis is installed.
The text was updated successfully, but these errors were encountered: