goland出现报错go: go.mod file not found in current directory or any parent directory; 2022-06-21 11:46:24 windows环境下,可使用cmd进入项目文件夹执行: go mod init example.com/greetings 出现go.mod文件,即可解决此问题还有出现goland该版本的 %1 与你运行的 Windows 版本不兼容注意修改代码头部为package main