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 🍎)
  • windows
  • linux
  • freebsd
  • openbsd
  • netbsd
  • plan9

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 of gox the environment variable $GOPATH must be set correctly to /usr/share/gocode. see $ go help gopath for 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 πŸ‘‘

  • gox is 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. πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈ