GoLand的各种报错

GoLand的各种报错

  • 报错1:Main file has non-main package or doesn't contain main function
  • 报错2:goland invalid vcs root mapping

报错1:Main file has non-main package or doesn’t contain main function

Error: Run after build is not possible Main file has non-main package or doesn't contain main function

GoLand的各种报错_第1张图片
GoLand的各种报错_第2张图片

报错2:goland invalid vcs root mapping


设置下Project GOPATH就可以了

你可能感兴趣的:(Go,GoLand,Go)