Skip to content

Instantly share code, notes, and snippets.

@jameBoy
Forked from crazygit/install_go_tools.sh
Created August 21, 2016 07:58
Show Gist options
  • Select an option

  • Save jameBoy/88e72a8d3da194c3d55cdd364a790121 to your computer and use it in GitHub Desktop.

Select an option

Save jameBoy/88e72a8d3da194c3d55cdd364a790121 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 git@github.com:golang/tools.git $GOPATH/src/golang.org/x/tools
git clone git@github.com: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