Golang for Raspberry pi?

One potential issue using Go with a Raspberry Pi is the size of the binary. Go binaries are standalone, requiring no VM or interpretter, which means the compiled binary is substantially larger. A basic “hello, world” binary is ~1.7Mb in Go whereas it’s only kb in other languages.

TinyGo is a third-party compiler only compiles code absolutely needed to run the binary. So, the binary is substantially larger. TinyGo is specifically designed for things like Raspberry Pi.

2 Likes