4 ms·
First, I'd recommend installing go using homebrew if you're on a Mac using the --cross-compile-all flag. After that you can compile a binary for any supported
by danaw 13y ago
First, I'd recommend installing go using homebrew if you're on a Mac using the --cross-compile-all flag.
After that you can compile a binary for any supported architecture without much work:
GOOS=linux GOARCH=arm go build file.go
See: https://coderwall.com/p/pnfwxg https://coderwall.com/p/pnfwxg
- bsaul 13y agothanks, i didn't know homebrew would facilitate the process. It's always good to know.