1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-10-31 06:18:17 +01:00
tldr/pages/common/gox.md
2019-05-12 19:59:07 +02:00

495 B

gox

A tool for cross-compiling Go programs. Homepage: 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}}"