mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
26 lines
585 B
Plaintext
26 lines
585 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# 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}}"`
|