I wanted a non-scripted serious programming language for the Raspberry Pi. Choices are C/C++/Go and Rust. I decided to go with Go. Here are my notes.
- This article outlines the steps to install Go compiler on the Pi.
- Go version 1.14.x works fine on the oldest of Raspberry Pis in my possession.
- The Bootstrap method of installing it by using Go 1.4 to bootstrap latest Go works but it will take a long time on the small Pi.
- Pis have ARMv6 and ARMv7 processors. You need to pick the right binary
- There is more simpler method of running the official binary. This has an advantage of just download and install.
pi@piguard:~/gotest $ cat /proc/cpuinfo processor : 0 model name : ARMv6-compatible processor rev 7 (v6l) BogoMIPS : 697.95 Features : half thumb fastmult vfp edsp java tls CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xb76 CPU revision : 7 Hardware : BCM2835 Revision : 0010 Serial : 000000002c6032da Model : Raspberry Pi Model B Plus Rev 1.2 pi@piguard:~/gotest $ go version go version go1.14.4 linux/arm