【发布时间】:2021-08-10 22:27:48
【问题描述】:
我在使用此命令在 go 中创建新模块时遇到问题:go mod init <moduleName> 它成功创建了 go.mod 文件,但后来抛出此错误 go: RLock /storage/mySdCard/github.com/my-username/App/go.mod: function not implemented 并且它不允许我安装任何 go 包!请帮我解决这个错误或者我该如何解决它!
我运行了这个命令:
go mod init myApp
我得到的输出:
go: creating new go.mod: module myApp
go: updating go.mod: Lock /storage/8D8B-150E/Go/src/github.com/my-username/App/go.mod: function not implemented
【问题讨论】:
-
我们看不到的代码很难调试。你能用产生错误的代码更新你的问题吗?
-
每当我尝试在 go 中创建新模块时都会抛出错误!!!顺便说一句,我正在使用 termux!
-
你刚才说它成功创建了模块。那么成功与否?请显示您运行以产生错误的 eact 命令。