Compile Go program in the current directory for all operating systems and architecture combinations
Download and compile a Go program from a remote URL
Compile current directory for a particular operating system
Compile current directory for a single operating system and architecture combination
$ gox -osarch="freebsd/386" github.com/foo/bar
Gox is a cross compiling build tool for Go which makes it possible to produce binaries for foreign platforms without having to install Go on the targeted system. Several operating systems and architectures are supported, while parallel building on multiple cores is possible.
Gox supports several target operating systems and architectures, as they are supported by the current version of the Go compiler. Currently, choices for (-os) are: darwin (Mac OS 10.7 and above), windows, linux, freebsd, openbsd, netbsd, and plan9. Choices for (-arch) are: amd64 (64-bit X86), 386 (32-bit x86), arm (32-bit ARM), and arm64 (64-bit ARM). If no options are given, gox builds all available pairs (-osarch) in parallel on all available cores.
Note: for the use of gox the environment variable $GOPATH must be set correctly to /usr/share/gocode. See $ go help gopath for information on this issue.
Please run gox -h for a complete list of options and additional information.
gox is written by Mitchell Hashimoto <email@example.com>. This manpage is written by Daniel Stender <firstname.lastname@example.org>.