Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 1.07 KB

README.md

File metadata and controls

27 lines (18 loc) · 1.07 KB

golang-tools-install-script

Bash script to automate Go language tools single user installation (Linux) or even removal. Latest filename for download at the time of this writting was for version 1.5 of Go. Feel free to change the variables on the beggining to match whatever version you need.

Tested with:

  • Ubuntu/Mint/Debian (17/10/2015)
  1. Download with wget or your preferred download method:
wget https://raw.githubusercontent.com/canha/golang-tools-install-script/master/goinstall.sh
  1. To install 64-bit
bash goinstall.sh --64

Or, to install 32-bit:

bash goinstall.sh --32
  1. To remove any changes call:
bash goinstall.sh --remove

The script will make .go and go folders on your home directory, add the needed variables and PATH expansion.

$HOME/.go folder is your where go will be installed to.
$HOME/go is the default workspace.

Read more about the workspace at http://golang.org/doc/code.html