Getting Go

It’s quite easy to install the Go language on Ubuntu and similar Linuxes. In fact, Ubuntu has an old version straight out of apt-get. However, if you want to install the latest, maybe you want to download the latest and install it in a clean way. Here’s how I chose to do it - YMMV. #!/bin/bash -xe V=go${1:-1.1} if fgrep $V /usr/local/go/VERSION; then echo Go $V is already installed in /usr/local/go echo To uninstall or upgrade, first echo " sudo rm -rf /usr/local/go" else echo Installing Go programming language $V .