GO语言遇到“go: go.mod file not found in current directory or any parent directory”怎么办法. 这个解决办法只适用于当前文件目录下没有go,mod文件 我们进入当前文件目录下,运行 go mod init example.com/greetings 然后等待创建即可