I use MACOSX 10.10.5 and use Intellij IDEA as IDE.
I already install GO SDK (by download SDK from website and not from Macports)and try simple program, it work correctly.
I try to use gorilla library (http://www.gorillatoolkit.org/pkg/mux#overview), So I set GOPATH like this
- GOPATH=$HOME/work
- PATH=$PATH:$GOPATH/bin
- go get github.com/gorilla/mux
and Add PATH to intellij, see figure below.
When i import this library IDE throw error like this.
So i try to fixit like this I use IntelliJ IDEA as golang IDE, and system environment have already set GOPATH,But IDEA can't load it
But it do not work for me. how can I set GOPATH in idea?