Skip to content

Instantly share code, notes, and snippets.

@mohae
mohae / InstallGo
Last active February 23, 2016 22:24
Installs the current release of Go
#!/bin/bash
# For more info see https://golang.org/doc/install.html, the instructions there are all
# that is needed to install Go.
#
# DO NOT RUN with SUDO; Go should be installed under the user not root. Using sudo will
# cause problems. This script will install Go to /usr/local/go and create your workspace
# in your home directory: $HOME/go.
#
# The workspace is where all of the Go code will exist. Place your code in a subdirectory
# of $HOME/go/src. If you want your Go code (workspace) in a different location, change