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

然后,再试试 就可以了!

 

posted @ 2020-07-27 13:38  Mr.peter  阅读(745)  评论(0编辑  收藏  举报