概述
go get go.etcd.io/etcd/clientv3
# github.com/coreos/etcd/clientv3/balancer/resolver/endpoint
C:Usersgaoevgopkgmodgithub.comcoreosetcd@v3.3.27+incompatibleclientv3balancerresolverendpointendpoint.go:114:78: undefined: resolver.BuildOption
C:Usersgaoevgopkgmodgithub.comcoreosetcd@v3.3.27+incompatibleclientv3balancerresolverendpointendpoint.go:182:31: undefined: resolver.ResolveNowOption
# github.com/coreos/etcd/clientv3/balancer/picker
C:Usersgaoevgopkgmodgithub.comcoreosetcd@v3.3.27+incompatibleclientv3balancerpickererr.go:37:44: undefined: balancer.PickOptions
C:Usersgaoevgopkgmodgithub.comcoreosetcd@v3.3.27+incompatibleclientv3balancerpickerroundrobin_balanced.go:55:54: undefined: balancer.PickOptions
: undefined: resolver.ResolveNowOption
# github.com/coreos/etcd/clientv3/balancer/picker
C:Usersgaoevgopkgmodgithub.comcoreosetcd@v3.3.27+incompatibleclientv3balancerpickererr.go:37:44: undefined: balancer.PickOptions
C:Usersgaoevgopkgmodgithub.comcoreosetcd@v3.3.27+incompatibleclientv3balancerpickerroundrobin_balanced.go:55:54: undefined: balancer.PickOptions
go mod 文件中添加 replace google.golang.org/grpc => google.golang.org/grpc v1.26.0
最后
以上就是懵懂自行车为你收集整理的undefined: resolver.ResolveNowOption的全部内容,希望文章能够帮你解决undefined: resolver.ResolveNowOption所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复