有没有大佬知道这个情况怎么解决?

jzk666 2022-10-20 17:43:49

could not import GenerateBtcAddress/ADD (cannot find package "GenerateBtcAddress/ADD" in any of
C:\Program Files\Go\src\GenerateBtcAddress\ADD (from $GOROOT)
C:\Users\HP\go\src\GenerateBtcAddress\ADD (from $GOPATH))

 

...全文
55 3 打赏 收藏 转发到动态 举报
写回复
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
寅恪光潜 2022-11-22
  • 打赏
  • 举报
回复
Junebao 2022-10-23
  • 打赏
  • 举报
回复
因为 go 默认开启了 go mod 你没有把 GenXXX 设置为一个 go 模块,所以只会去 gopath 和 goroot 路径搜索,尝试执行 go mod init genXXX && go mod tidy
jzk666 2022-10-20
  • 打赏
  • 举报
回复

明明就在一起的文件夹,非要到C盘去搜索....

2,154

社区成员

发帖
与我相关
我的任务
社区描述
go语言学习与交流版
社区管理员
  • go语言社区
  • LibreCoder
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告