redis
redis copied to clipboard
error in go get or go build
error in go get or go build
go get -u -v gopkg.in/go-oauth2/redis.v3
# gopkg.in/go-oauth2/redis.v3 ..\..\gopath\pkg\mod\gopkg.in\go-oauth2\[email protected]\options.go:79:3: cannot use o.Dialer (type func(context.Context, string, string) (net.Conn, error)) as type func() (net.Conn, error) in field value
Related to this issue #7 error building go-oauth2 redis
Could anyone help fix this? Thank you very much and have a good day!
This bug has been fixed before, you can try it again.
I'm having trouble too! What's up with this?
The bug is still not fixed. Quick fix is:
comment out the line 79 at:
<your gopath>\pkg\mod\gopkg.in\go-oauth2\[email protected]\options.go
//Dialer: o.Dialer,
Not sure what dialer is for.
Should I fork it?