I love go because cross compiling is as easy as setting a few environement variables!
GOOSset wgich os go is gonna compile to.
it probably supports a few platforms. like "linux" and "windows". todo: add the list
GOARCHconfigure target architechture
im not sure how to build for x64 (prolly amd64 or smth) but i've used "arm32" and "arm64" with success
GOARMif you're compiling for arm, it can be useful to select a specific version. for example my kindle has an ARMv7 processor so to cross compile to it you would use
GOOS=linux GOARCH=arm32 GOARM=7
(i needto double check)