go语言编程常见问题

  1. 在Goland中运行单元测试报错Error: Cannot find package

在Goland中运行单元测试报错Error: Cannot find package

如下图,在Goland中运行单元测试时报错:“Error: Cannot find package”

弹出如下报错提示窗口:

解决办法:在Goland设置界面中取消勾选“Enable Go modules integration”。

参考:goland中运行go 时报package xxx is not in GOROOT


转载请注明来源,欢迎对文章中的引用来源进行考证,欢迎指出任何有错误或不够清晰的表达,在下面评论区告诉我^_^^_^