1 wget -c https://dl.google.com/go/go1.14.2.linux-amd64.tar.gz -O - | sudo tar -xz -C /usr/local 2 vim ~/.bashrc 或者 .zshrc 3 export PATH=$PATH:/usr/local/go/bin 4 source ~/.bashrc 或者 .zshrc 5 go version # 验证 go version go1.14.2 linux/amd64
1 go env -w GOPROXY=https://goproxy.cn # 国内七牛云代理 2 git clone git@github.com:goplus/gop.git 3 cd gop 4 ./all.bash
vsvode 插件名字:goplus
go+ 文件后缀名字是:gop
1 gop run # Run a Go+ program #运行Go+程序 2 gop install # Build Go+ files and install target to GOBIN #编译Go+文件并将目标安装到GOBIN 3 gop build # Build Go+ files #编译Go+文件 4 gop test # Test Go+ packages #测试Go+包 5 gop fmt # Format Go+ packages #格式Go+包 6 gop clean # Clean all Go+ auto generated files #清理所有Go+自动生成的文件 7 gop go # Convert Go+ packages into Go packages #将go+包转换为go