I use IntelliJ IDEA as golang IDE in Windows , and system environment have already set GOPATH,but IDEA can\'t load $GOPATH.
I use go get github.com/astaxie/beego
IDEA plugin for Go does not understand GOPATH as it is defined by Go conventions, it uses only GOROOT, which is determined from SDK. The best workaround is to make symbolic links in GOROOT to packages in GOPATH:
$GOPATH/src/github.com <-- $GOROOT/src/pkg/github.com
$GOPATH/src/code.google.com <-- $GOROOT/src/pkg/code.google.com
... etc
It should be possible to do in Windows too.