问题描述
今天在封装etcd的时候导包报错:
could not import go.etcd.io/etcd/clientv3 (no required module provides package "go.etcd.io/etcd/clientv3")
问题解决:
- get:确保下载了client包
go get go.etcd.io/etcd/client
- tidy
go mod tidy
本文由mdnice多平台发布
标签:clientv3,etcd,could,io,go,import From: https://www.cnblogs.com/jaryue/p/17595994.html