How To Build Go Executables for Multiple Platforms on Ubuntu

The Go programming language comes with a rich toolchain that makes obtaining packages and building executables incredibly easy. One of Go’s most powerful features is the ability to cross-build executables for any Go-supported foreign platform. This makes testing and packaging your software easy and accessible.

Ubuntu

20.04

How To Build Go Executables for Multiple Platforms on Ubuntu 20.04

Learn How To Build Go Executables for Multiple Platforms on Ubuntu 20.04
16.04

How To Build Go Executables for Multiple Platforms on Ubuntu 16.04

Learn How To Build Go Executables for Multiple Platforms on Ubuntu 16.04

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.