参考链接:https://github.com/golangci/golangci-lint/issues/825
问题:
goland 提示 context loading failed: no go files to analyze
解决方案:
先更新 go linter 插件版本,重启goland。
还不行的话就在命令行执行下列命令:
golangci-lint cache clean && go clean -modcache -cache -i
golangci-lint run -v --timeout=5s