You can use one workspace, but if you want to work with another project from the workspace, you should check your import. Because when you import golang packages
import "fmt"
He is looking for the "fmt" package on GOROOT or other packages that get through
go get github.com/package
It places the package under %workspace(GOPATH)%\src\github.com . It does not put a package under your project. Thus, you can clone third-party projects in the project folder and set the import as a relative path entry:
import "./github.com/package"
then run your go files. He works.
ugurozgen
source share