2019-05-12 18:59:07 +01:00
|
|
|
# gox
|
|
|
|
|
2024-02-14 20:25:13 +00:00
|
|
|
> Cross-compile Go programs.
|
2019-06-07 12:00:26 +01:00
|
|
|
> More information: <https://github.com/mitchellh/gox>.
|
2019-05-12 18:59:07 +01:00
|
|
|
|
|
|
|
- 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}}"`
|