johnlegend / golang-tools-install-script

Simple Bash script to automate Go language tools single user installation or even removal.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Simple Bash script to automate Go language tools single user installation or even removal.

License:Apache License 2.0


Languages

Language:Shell 100.0%