喝醉的毛毛虫 2021-03-20
sudo add-apt-repository ppa:gophers/go sudo apt-get update sudo apt-get install golang-stable
sudo apt-get install golang
vi /etc/profile
export GOROOT=/usr/lib/go export GOARCH=386 export GOOS=linux export GOPATH=/home/administrator/workspace/go export GOBIN=$GOPATH/bin export PATH=$GOPATH/bin:$PATH source /etc/profile
mkdir src pkg bin
cd $GOPATH/src mkdir test1 cd test1 vi t1.go
filetype plugin indent on syntax on
go get -u github.com/nsf/gocode
~ cd $GOPATH/src/github.com/nsf/gocode/vim ~ ./update.bash ~ gocode set propose-builtins true propose-builtins true
GOROOT---> C:\go GOPATH --> C:\go GOOS --> windows GOARCH --> 386 Gocode --> D:\gocode-win32\gocode.exe