在goload 中执行代码报错

$GOPATH/go.mod exists but should not goland

方法1 将go目录下存在go.mod,删去

方法2 goland Go Modules设置

$GOPATH/go.mod exists but should not goland
GOPATH不设置留空,保留Default
$GOPATH/go.mod exists but should not goland
系统变量添加GOPROXY,值:https://goproxy.cn
$GOPATH/go.mod exists but should not goland

相关文章:

  • 2021-09-19
  • 2022-12-23
  • 2021-10-22
  • 2021-11-22
  • 2022-02-07
  • 2021-05-20
  • 2022-12-23
  • 2021-11-04
猜你喜欢
  • 2022-01-18
  • 2022-01-08
  • 2022-01-24
  • 2021-10-12
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案