After reloading go goland engineering error Error: can not find package wrong solution

Upgrade a bit golang version, uninstall the old version of the go, download and install the new version of go, after installing Open goland compile engineering error, suggesting that error: can not find package xxxx, a close look at the project also nothing changes, the original reason is golang the installation program will automatically generate an environment variable GOPATH, and I'm not the same as the original configuration, modify environment variables GOPATH problems can be solved.

Published 177 original articles · won praise 21 · views 500 000 +

Guess you like

Origin blog.csdn.net/peihexian/article/details/104036917