Goland故障排查
解决无法识别导入包
解决
- 检查是否开启go mod
- 若开启了go mod,IDE的setting是否配置正确,需要删除gopath
- go mod tidy
- 重新go build即可
解决调整不正常
解决
- 可尝试删除.idea文件
- 删除IDE缓存
- 也可参考https://stackoverflow.com/questions/37282285/intellij-cannot-find-any-declarations
This post is licensed under CC BY 4.0 by the author.