This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Based on instructions at https://golang.org/doc/code.html | |
# Get latest go build | |
wget https://dl.google.com/go/go1.11.2.linux-amd64.tar.gz | |
tar -xvf go1.11.2.linux-amd64.tar.gz | |
sudo mv go /usr/local | |
# Add to ~/.bashrc and ~/.profile (requried by VSCode) | |
export GOROOT=/usr/local/go | |
# Location where all the go source code will reside | |
mkdir -p $HOME/Workspace/repos/go | |
mkdir -p $HOME/Workspace/repos/go/{src,bin} |