2025-03-14 21:59:59 -06:00
|
|
|
# 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:
|
|
|
|
|
|
2026-02-18 06:55:01 -07:00
|
|
|
`gox {{url_1 url_2 ...}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- 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}}"`
|