From a03e688f4d8b35e9b2a6a00f9ac552d0b8383c33 Mon Sep 17 00:00:00 2001 From: Zach Queal Date: Sun, 12 May 2019 13:59:07 -0400 Subject: [PATCH] gox: add page (#3004) --- pages/common/gox.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pages/common/gox.md diff --git a/pages/common/gox.md b/pages/common/gox.md new file mode 100644 index 000000000..6119e3775 --- /dev/null +++ b/pages/common/gox.md @@ -0,0 +1,20 @@ +# 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}}"`