如何设置go环境变量GOPATH?
gin-gonic/gin$ go get -u github.com/gin-gonic/gin
package github.com/gin-gonic/gin:
cannot download, $GOPATH not set.
For more details see: go help gopath
echo $GOPATHGOPATH$ export GOPATH=$HOME/go
~/.bash_profile$ source ~/.bash_profile
~/.bashrc$ source ~/.bashrc
$GOPATH$ echo $GOPATH
/Users/wangtom/go
参考链接:
[END]