mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-19 16:01:40 +00:00
Update cheatsheets
This commit is contained in:
25
gox
Normal file
25
gox
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
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}}"`
|
||||
Reference in New Issue
Block a user