The Hyperpessimist

The grandest failure.

Go 1.2 for Raspberry Pi

After I have been providing Go for Raspbian since quite some time, I recently decided to update it to Go 1.2.1.

If you’re new, here’s how to get Go on your Raspberry Pi:

wget -O - | sudo apt-key add -
sudo wget -O /etc/apt/sources.list.d/xivilization-raspbian.list

sudo aptitude update
sudo aptitude install golang

No compiling, no strange tarballs. If you have already added the repository, it will get updated automatically. To my knowledge, this is the easiest and cleanest way to get Go on Raspbian.

Bonus feature: it includes the cross compilers for OS X (darwin), Windows, FreeBSD and NetBSD as well as the i386, amd64 and arm CPU variants. So you could build Windows executables on your Raspberry Pi. Heh.