GOX(1)
β¨ NAME β¨
okay so bestie, gox β it's the simple cross compilation tool for Go π that's literally the whole vibe, periodt.
π USAGE EXAMPLE π
like, here's how you'd actually call it:
$ gox -osarch="freebsd/386" github.com/foo/bar
that's it, that's the whole girl. iconic. π¦
π DESCRIPTION π
ngl, gox is a cross compiling build tool for Go and its whole main character moment is making it possible for you to produce binaries for foreign platforms without having to install Go on the targeted system. like, you don't have to go over there and set up a whole Go install on some other machine, you just build from where you're at. several operating systems and architectures are supported, and parallel building on multiple cores is possible, so it's giving "we do a little multitasking" β¨
gox supports several target operating systems and architectures β specifically, whatever the current version of the Go compiler supports. right now, the choices for (-os) are:
darwin(Mac OS 10.7 and above π)windowslinuxfreebsdopenbsdnetbsdplan9
and the choices for (-arch) are:
amd64(64-bit X86)386(32-bit x86)arm(32-bit ARM)arm64(64-bit ARM)
and if you give it no options at all, gox builds all available pairs (-osarch) in parallel on all available cores. full send. all the cores. she's not playing around. π₯
β οΈ note bestie, this one matters: for the use ofgoxthe environment variable$GOPATHmust be set correctly to/usr/share/gocode. see$ go help gopathfor information on this issue. like, please actually set it, don't just skip this part π
πΈ OPTIONS πΈ
okay so I know you want the full menu, and I respect that, but:
please run gox -h for a complete list of options and additional information. π
π SEE ALSO π
go(1)β yeah, that go. her. π
π AUTHORS π
goxis written by Mitchell Hashimoto<mitchell.hashimoto@gmail.com>.- this manpage is written by Daniel Stender
<debian@danielstender.com>.
and that's the whole page bestie!! π«Ά this was the gox page from manual section 1 β GOX(1) β aka the gox manual, gox edition. go build something for a platform you don't even own. slay. πβ¨ππ¦πΈ
π¦ where this page comes from
- debian bookworm: gox 0.3.0-8+b5 Β· MPL-2.0
- debian trixie: gox 1.0.1+ds-1+b4 Β· MPL-2.0
- ubuntu jammy: gox 0.3.0-6 Β· MPL-2.0
- ubuntu noble: gox 0.3.0-8build1 Β· MPL-2.0
- ubuntu noble: gox 0.3.0-8ubuntu0.24.04.3 Β· MPL-2.0
- ubuntu questing: gox 1.0.1+ds-1
- ubuntu resolute: gox 1.0.1+ds-1build1 Β· MPL-2.0
- ubuntu stonking: gox 1.0.1+ds-1build1 Β· MPL-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms