当前位置: 代码迷 >> 综合 >> vscode cannot find package in D\src
  详细解决方案

vscode cannot find package in D\src

热度:55   发布时间:2024-01-17 00:17:57.0
> go help gopath

文档中有一段:

On Windows, the value is a semicolon-separated string.

意思是以 " : "作为分隔符

如果你配置的 GOPATH = D:/gopath, 会被解析成 gopath = D 和 gopath = /gopath两个目录!!!

 

go: GOPATH entry is relative; must be absolute path: "$GOHOME".

  相关解决方案