cannot find package "golang.org/x/time/rate" in any of: C:\Go\src\golang.org\x\time\rate (from $GOROOT)

golang项目在构建时出错

尝试:

golang.org/x/time/rate

没用的话,创建C:\Go\src\golang.org\x\目录

cd C:\Go\src\golang.org\x

从github拿来项目需要的文件

git clone https://github.com/golang/time.git

然后,再试试 就可以了!

猜你喜欢

转载自www.cnblogs.com/peteremperor/p/13384980.html