mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-10 00:35:41 +02:00
gox: add page (#3004)
This commit is contained in:
parent
6da6326a16
commit
a03e688f4d
1 changed files with 20 additions and 0 deletions
20
pages/common/gox.md
Normal file
20
pages/common/gox.md
Normal file
|
@ -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}}"`
|
Loading…
Add table
Reference in a new issue