+
80
-

go运行报错:working directory is not part of a module

go

go运行报错:working directory is not part of a module

怎么解决这个问题?


网友回复

+
0
-

在当前目录下执行:

go mod init <module-name>

例如

go mod init test

我知道答案,我要回答