Skip to content

Instantly share code, notes, and snippets.

@crazygit
Last active July 2, 2021 03:16
Show Gist options
  • Save crazygit/79641e92e474ec151d07 to your computer and use it in GitHub Desktop.
Save crazygit/79641e92e474ec151d07 to your computer and use it in GitHub Desktop.
免翻墙安装Go tools
#!/usr/bin/env bash
# 免翻墙安装Go tools
branch="release-branch.go1.4"
mkdir -p $GOPATH/src/golang.org/x
git clone -b $branch [email protected]:golang/tools.git $GOPATH/src/golang.org/x/tools
git clone [email protected]:golang/net.git $GOPATH/src/golang.org/x/net
cd $GOPATH
go install golang.org/x/tools/cmd/goimports
go install golang.org/x/tools/cmd/vet
go install golang.org/x/tools/cmd/oracle
go install golang.org/x/tools/cmd/godoc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment