1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 10:02:10 +02:00
tldr/pages/common/gox.md
Vitor Henrique c8f956319f
pages*: simplify page description (#12149)
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2024-02-14 21:25:13 +01:00

492 B

gox

Cross-compile Go programs. More information: 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}}"