Skip to content

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

License

Notifications You must be signed in to change notification settings

zenreach/golang-tools-install-script

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 

Repository files navigation

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.9.3 of Go. Feel free to change the variables on the beggining to match whatever version you need.

Tested with:

  • Ubuntu/MacOSX Sierra (29/10/2017)

Installation

Download with wget or clone the repository

wget https://raw.githubusercontent.com/canha/golang-tools-install-script/master/goinstall.sh

Installation examples

To install on Linux:

bash goinstall.sh --64

Or, to install 32-bit:

bash goinstall.sh --32

To install on macOS:

bash goinstall.sh --darwin

Uninstall

bash goinstall.sh --remove

Notes

The script will create .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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%