1. go-micro最新版本默认不再支持consul了,(从1.14开始不再支持),consul在go-plugins中,需要单独的go get,同样import时也应该时go-plugins的地址

2. github.com/coreos/etcd/clientv3 cannot use auth.callOpts 下载etcd的3.3.13版本,把github.com/coreos中的etcd直接替换掉就可以了

3. github.com\micro\go-micro\registry\etcd\etcd.go:79:10: config.LogConfig undefined (type clientv3.Config has no field or method LogConfig)  没有使用etcd为什么会报这个错误呢?因为用的是consul,所以直接进去把这行注释掉了

相关文章:

  • 2022-01-09
  • 2021-08-01
  • 2021-04-11
  • 2021-05-22
  • 2021-12-20
  • 2021-10-04
  • 2021-08-07
  • 2021-05-27
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-14
  • 2021-06-22
  • 2021-10-15
  • 2021-08-31
相关资源
相似解决方案