使用go-micro遇到的坑

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,所以直接进去把这行注释掉了