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.
How To Build Go Executables for Multiple Platforms on Ubuntu 20.04
How To Build Go Executables for Multiple Platforms on Ubuntu 16.04