不多说,参考:https://github.com/GoClipse/goclipse/blob/latest/documentation/Installation.md#installation
(划重点:???? Note for users in China )
1 .环境变量
export GOROOT=/usr/local/go export PATH=$PATH:$GOROOT/bin export GOPATH=$HOME/go export PATH=$PATH:$GOPATH/bin export GOARCH=amd64 export GOOS=darwin
#gocode mkdir -p $GOPATH/bin/src/github.com/nsf cd $GOPATH/bin/src/github.com/nsf git clone https://github.com/nsf/gocode.git cd $GOPATH/bin/ go get github.com/nsf/gocode #guru mkdir -p $GOPATH/bin/src/golang.org/x/ cd $GOPATH/bin/src/golang.org/x/ git clone https://github.com/golang/tools.git cd $GOPATH/bin/ go get golang.org/x/tools/cmd/guru #godef mkdir -p $GOPATH/bin/src/github.com/rogpeppe/ cd $GOPATH/bin/src/github.com/rogpeppe/ git clone https://github.com/rogpeppe/godef.git cd $GOPATH/bin/ go get github.com/rogpeppe/godef
gofmt:
设置为: $GOROOT/bin/gofmt
macOS Eclipse配置Go开发环境:安装goclipse
原文:https://www.cnblogs.com/koongcen/p/10745297.html