gox

A tool for cross-compiling Go programs. More information: <https://github.com/mitchellh/gox>.

Install

All systems
curl cmd.cat/gox.sh
Debian Debian
apt-get install gox
Ubuntu
apt-get install gox
image/svg+xml Kali Linux
apt-get install gox
Windows (WSL2)
sudo apt-get update sudo apt-get install gox
OS X
brew install gox
Raspbian
apt-get install gox

A tool for cross-compiling Go programs. More information: <https://github.com/mitchellh/gox>.

  • Compile Go program in the current directory for all operating systems and architecture combinations:
    gox
  • Download and compile a Go program from a remote URL:
    gox url_1 url_2
  • Compile current directory for a particular operating system:
    gox -os="os"
  • Compile current directory for a single operating system and architecture combination:
    gox -osarch="os/arch"

© tl;dr; authors and contributors