1

对golang.org/x的解决方案

 2 years ago
source link: https://studygolang.com/articles/35178
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

对golang.org/x的解决方案

xiaojun1195 · 大约4小时之前 · 30 次点击 · 预计阅读时间不到 1 分钟 · 大约8小时之前 开始浏览    

项目是gopath模式

跟着其他博主对golang.org/x的解决方案做(https://blog.csdn.net/u011768994/article/details/78477143)
发现缺少的exp包并不在里面,所以还是会出现cannot find package "golang.org/x/exp/rand"的错误

之后发现在github上有一个golang/exp的package,发现下载下来后放进golang/x/里,该错误就可以解决


有疑问加站长微信联系(非本文作者)

280

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:701969077


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK