Golang: Setup GOROOT on CentoOS
export GOPATH=/usr/local/go
export GOROOT=$HOME/go
export PATH=$PATH:$GOROOT/bin In IntelliJ IDEA
File -> Project Structure -> SKDs: Add to the classpath /usr/local/go/src
export GOROOT=$HOME/go
export PATH=$PATH:$GOROOT/bin In IntelliJ IDEA
File -> Project Structure -> SKDs: Add to the classpath /usr/local/go/src
comments (0)