I describe Gox as “A dead simple, no frills Go cross compile tool.” It is a Go cross-compilation tool on my GitHub, intended to feel familiar to anyone who knows go build. The README calls it “Gox - Simple Go Cross Compilation.”
The repository metadata lists 4,565 stars, 343 forks.
Started 2013-11, last updated 2023-05.
Gox parallelizes builds for multiple platforms and builds the cross-compilation toolchain.
By default, Gox parallelizes based on the number of CPUs and builds for every platform.
A sample default run reports Number of parallel builds: 4.
The sample output lists 16 pairs: darwin/386, darwin/amd64, linux/386, linux/amd64, linux/arm, freebsd/386, freebsd/amd64, freebsd/arm, openbsd/386, openbsd/amd64, windows/386, windows/amd64, netbsd/386, netbsd/amd64, netbsd/arm, plan9/386.
The README recommends go get, notes that versions are tagged, and says users can check out a tag and compile.
go install github.com/mitchellh/gox@latest
gox -h
For the current package, the README says to call gox with no parameters.
gox
gox ./...
gox github.com/mitchellh/gox github.com/hashicorp/serf
gox -os="linux"
gox -osarch="linux/amd64"
The README says Gox compiles for multiple platforms and can run on any platform Go supports, parallelizes builds, and has built-in OS/architecture filtering; Dave's scripts require a shell and build sequentially.
The README presents Gox as a super slim alternative that only cross-compiles binaries; goxc can build system packages, upload binaries, and generate download webpages, but does not build packages in parallel.
Gox doesn't enforce a specific output structure for built binaries.
The captured material does not establish Gox’s current maintenance status, its supported-platform list beyond the sample output, or whether these commands and behaviors remain current. The README directs readers to gox -h for further help.