我的 GOROOT 路径:-
C:\Go
我已将 GOPATH 设置为:-
C:\Users\kunal\go
github.com/gorilla/mux
但是当我在 VS Code 中导入模块(如)时。VS Code 提示我这个错误:-
could not import github.com/gorilla/mux (cannot find package "github.com/gorilla/mux" in any of C:\Go\src\github.com\gorilla\mux (from $GOROOT) C\src\github.com\gorilla\mux (from $GOPATH) \Users\kunal\go\src\github.com\gorilla\mux (from $GOPATH))
从上面很明显,它向我展示了两个我没有设置的不同 GOPATH。我该如何解决?