Cross compiling in Go just works
I tried cross compiling in Go for the first time and it’s really amazing how
GOARCH=amd64 GOOS=linux go build
just works immediately.
Sounds like the one caveat is that things aren’t so magical if if you use CGO, someone linked to https://github.com/messense/homebrew-macos-cross-toolchains which apparently makes that easier on Mac OS.