Installing Go on Ubuntu 16.04, the easy way

There are many articles on the web telling you to install and compile Go from source. That’s a perfectly valid option but overkill if you simply need some Go apps.

Without further ado the simple method of installing Go on Ubuntu (zsh is assumed, for bash use .bashrc instead of .zshrc):
[bash]apt-get install golang
echo ‘export GOPATH=~/go’ >> ~/.zshrc
. ~/.zshrc
mkdir -p “$GOPATH”
[/bash]

And you’re done. Now you can easily install packages such as the platinum search:
[bash]go get -u github.com/monochromegane/the_platinum_searcher/…[/bash]

Bookmark and Share

About Rick van Hattem

Rick van Hattem is a Dutch Internet entrepreneur and co-founder of Fashiolista.com
No comments yet.

Leave a Reply