Last active
July 2, 2021 03:16
-
-
Save crazygit/79641e92e474ec151d07 to your computer and use it in GitHub Desktop.
免翻墙安装Go tools
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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