Goland 导包飘红 “Cannot resolve ...”解决

Goland 导包飘红 “Cannot resolve …”解决

在github上面下了7天用Go从零实现Web框架Gee教程系列的来学习,用goland打开以后,导包各种飘红,还不提示具体因为啥…
Goland 导包飘红 “Cannot resolve ...”解决
Goland 导包飘红 “Cannot resolve ...”解决

后来发现是Goland的go module环境需要手动开启才可以
打开 file ===> settings => Go=>go modules 那个复选框勾上
Goland 导包飘红 “Cannot resolve ...”解决

上一篇:When allowCredentials is true, allowedOrigins cannot contain the special value "*" since


下一篇:出现“cannot be resolved or is not a field“莫名错误的解决方法