当前位置:网站首页>GO111MODULE=on go mod init错误(go: cannot determine module path for source directory)
GO111MODULE=on go mod init错误(go: cannot determine module path for source directory)
2022-04-21 22:43:00 【梅坞茶坊】
在go的项目中执行go mo init的时候会报一下错误
go: cannot determine module path for source directory F:\gowork\test5 (outside GOPATH, module path must be specified)
那是因为go mod init的时候没有指定一个module,指定module就可以了
go mod init ProjectName
版权声明
本文为[梅坞茶坊]所创,转载请带上原文链接,感谢
https://blog.csdn.net/qq_32421489/article/details/124317494
边栏推荐
- 【中南林业科技大学】【陈】第六周创新题素数
- CC00000. ZABBIX———————————————
- Deep understanding of MySQL locks
- L1-062 lucky lottery (15 points)
- [Central South University of forestry science and technology] [Chen] ninth week operation triangle exception handling
- Eventbridge integrated cloud service practice
- UVM First Steps with UVM - Register Layer
- 【中南林业科技大学】【陈】第七周创新题迷宫
- Flow chart of event distribution mechanism, the way for programmers to turn over
- L1-061 new fat formula (10 points)
猜你喜欢

L1-060 psychological shadow area (5 points)

Point cloud bilateral filtering

mysql读写分离

1957 college entrance examination mathematics problems

L1-057 PTA使我精神焕发 (5 分)

Day code 300 lines learning notes day 46

Pyqt5 + opencv operate local camera

L1-060 心理阴影面积 (5 分)

2022 intermediate accounting title examination economic law practice questions and answers

Exercise questions and answers of basic theories and relevant laws and regulations in 2022 supervision engineer examination
随机推荐
[RL] deeply understand the use of gradient descent in tabular learning (MC / TD)
CC00012.ZABBIX———————————————
Markdown代码块支持的语言
It is revealed that Xiaomi has new machines this month, and many of its products are ready to go
排序方式(8种)详解7—计数排序
每日练题(3)
Keil package common chip high-speed download address, including historical version, pay close attention to my quick collection
【matlab中一些小技巧和快捷鍵使用總結】
Query which tables have unique indexes (except primary keys)
Module 3: Outsourcing student management system - architecture design document
Event distribution mechanism Android, Android interview summary of large manufacturers, detailed answers
POI Point of interesting.
将模型训练外包真的安全吗?新研究:外包商可能植入后门,控制银行放款
REM practical development adaptation scheme for mobile web development
Image processing in opencv -- an example of discrete Fourier transform (11)
L1-056 猜数字 (20 分)
事件分发机制Android,大厂Android面试总结 详细解答
Recursive stack with the help of classical recursive tree
逻辑控制(实例讲解)
【中南林业科技大学】【陈】第九周作业三角形异常处理