Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mitchellh/gox
A dead simple, no frills Go cross compile tool
https://github.com/mitchellh/gox
Last synced: 23 days ago
JSON representation
A dead simple, no frills Go cross compile tool
- Host: GitHub
- URL: https://github.com/mitchellh/gox
- Owner: mitchellh
- License: mpl-2.0
- Archived: true
- Created: 2013-11-17T03:11:35.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2023-05-02T06:26:10.000Z (about 1 year ago)
- Last Synced: 2024-01-30T00:16:25.408Z (4 months ago)
- Language: Go
- Size: 123 KB
- Stars: 4,585
- Watchers: 81
- Forks: 407
- Open Issues: 68
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-go - gox - Dead simple, no frills Go cross compile tool. (Software Packages / DevOps Tools)
- awesome-go - gox - Dead simple, no frills Go cross compile tool. (Software Packages / DevOps Tools)
- awesome-hacking-lists - gox - A dead simple, no frills Go cross compile tool (Go (531))
- awesome-go-extra - gox - 11-17T03:11:35Z|2022-08-05T04:32:16Z| (Go Tools / DevOps Tools)
- awesome-go-cn - gox
- awesome-go-zh - gox
- awesome-go - gox - Dead simple, no frills Go cross compile tool. (Software Packages / DevOps Tools)
- awesome-stars - gox
- go-awesome - Gox - Go 跨端编译工具 (开源类库 / 构建编译)
- awesome-go-cn - gox
- awesome-go - gox - Dead simple, no frills Go cross compile tool. Stars:`4.6K`. (Software Packages / DevOps Tools)
- awesome-stars - mitchellh/gox - A dead simple, no frills Go cross compile tool (Go)
- fucking-awesome-go - :octocat: gox - A dead simple, no frills Go cross compile tool. :star: 1607 :fork_and_knife: 99 (Software Packages / DevOps Tools)
- awesome-go - gox - Dead simple, no frills Go cross compile tool. (Software Packages / DevOps Tools)
- awesome-go-projects - gox - Dead simple, no frills Go cross compile tool. (Software Packages / DevOps Tools)
- awesome-go - gox - | - | - | (Software Packages / DevOps Tools)
- awesome-projects - gox - A dead simple, no frills Go cross compile tool (Go)
- awesome-go - gox - A dead simple, no frills Go cross compile tool. (Software Packages / DevOps Tools)
- awesome-go-with-framework - gox - Dead simple, no frills Go cross compile tool. (Software Packages / DevOps Tools)
- awesome-stars - mitchellh/gox - A dead simple, no frills Go cross compile tool (Go)
- awesome-go - gox - Dead simple, no frills Go cross compile tool. (Software Packages / DevOps Tools)
- awesome-go-cn - gox
- go-awesome-cn-star - gox
- awesome-go - gox - Dead simple, no frills Go cross compile tool. (Software Packages / DevOps Tools)
- my-awesome-starred - mitchellh/gox - A dead simple, no frills Go cross compile tool (Go)
- awesome-stars - gox
- awesome-go-stars - gox - Dead simple, no frills Go cross compile tool. (Software Packages / DevOps Tools)
- awesome-go - gox - A dead simple, no frills Go cross compile tool. (Software Packages / DevOps Tools)
- awesome-stars - mitchellh/gox - A dead simple, no frills Go cross compile tool (Go)
- awesome-go - gox - Dead simple, no frills Go cross compile tool. (Software Packages / DevOps Tools)
- awesome-go. - gox - Dead simple, no frills Go cross compile tool. (Software Packages / DevOps Tools)
- awesome-go-zh - gox
- awesome-go - gox - Dead simple, no frills Go cross compile tool. (Software Packages / DevOps Tools)
- awesome-star - mitchellh/gox
- awesome-go-with-stars - gox - Dead simple, no frills Go cross compile tool. (Software Packages / DevOps Tools)
- awesome-go - gox - Dead simple, no frills Go cross compile tool. (Software Packages / DevOps Tools)
- awesome-stars - gox - A dead simple, no frills Go cross compile tool (Go)
- repo-1316-awesome-go-cn - gox
- repo-1211-awesome-go-cn - gox
- awesome-Char - gox - Dead simple, no frills Go cross compile tool. (Software Packages / DevOps Tools)
- awesome-reader - gox - Dead simple, no frills Go cross compile tool. (Software Packages / DevOps Tools)
- awesome-go - gox - A dead simple, no frills Go cross compile tool. (Software Packages / DevOps Tools)
- awesome-go - gox - Dead simple, no frills Go cross compile tool. (Software Packages / DevOps Tools)
- Go-awesome - gox - Dead simple, no frills Go cross compile tool. (Software Packages / DevOps Tools)
- awesome-go-cn - gox
- awesome-go - gox - Dead simple, no frills Go cross compile tool. (Software Packages / DevOps Tools)
- awesome-stars - mitchellh/gox - A dead simple, no frills Go cross compile tool (Go)
- awesome-go-tools - gox - A dead simple, no frills Go cross compile tool. (DevOps Tools / Contents)
- awesome-go-cn - gox
- awesome-go-handwritten - gox - Dead simple, no frills Go cross compile tool. (Software Packages / DevOps Tools)
- awesome-go - gox - Dead simple, no frills Go cross compile tool. - :arrow_down:0 - :star:1794 (Software Packages / DevOps Tools)
- awesome-hacking-lists - gox - A dead simple, no frills Go cross compile tool (Go)
- go-awesome - Gox - Go to the cross compilation tool (Open source library / Build And Compile)
- awesome-go2 - gox - Dead simple, no frills Go cross compile tool. (Software Packages / DevOps Tools)
- awesome-go - gox - Dead simple, no frills Go cross compile tool. (Software Packages / DevOps Tools)
- awesome-go - gox - A dead simple, no frills Go cross compile tool. (Software Packages / DevOps Tools)
- awesome-go - gox - Dead simple, no frills Go cross compile tool. (Software Packages / DevOps Tools)
- awesome-go - gox - Dead simple, no frills Go cross compile tool. (Software Packages / DevOps Tools)
- awesome-hacking-lists - mitchellh/gox - A dead simple, no frills Go cross compile tool (Go)
- awesome-go - gox - Dead simple, no frills Go cross compile tool. (Software Packages / DevOps Tools)
- awesome-go - gox - Dead simple, no frills Go cross compile tool. (Software Packages / DevOps Tools)
- awesome-go - gox - A dead simple, no frills Go cross compile tool - ★ 2961 (Software Packages)
README
# Gox - Simple Go Cross Compilation
Gox is a simple, no-frills tool for Go cross compilation that behaves a
lot like standard `go build`. Gox will parallelize builds for multiple
platforms. Gox will also build the cross-compilation toolchain for you.## Installation
To install Gox, please use `go get`. We tag versions so feel free to
checkout that tag and compile.```
$ go install github.com/mitchellh/gox@latest
...
$ gox -h
...
```## Usage
If you know how to use `go build`, then you know how to use Gox. For
example, to build the current package, specify no parameters and just
call `gox`. Gox will parallelize based on the number of CPUs you have
by default and build for every platform by default:```
$ gox
Number of parallel builds: 4--> darwin/386: github.com/mitchellh/gox
--> darwin/amd64: github.com/mitchellh/gox
--> linux/386: github.com/mitchellh/gox
--> linux/amd64: github.com/mitchellh/gox
--> linux/arm: github.com/mitchellh/gox
--> freebsd/386: github.com/mitchellh/gox
--> freebsd/amd64: github.com/mitchellh/gox
--> openbsd/386: github.com/mitchellh/gox
--> openbsd/amd64: github.com/mitchellh/gox
--> windows/386: github.com/mitchellh/gox
--> windows/amd64: github.com/mitchellh/gox
--> freebsd/arm: github.com/mitchellh/gox
--> netbsd/386: github.com/mitchellh/gox
--> netbsd/amd64: github.com/mitchellh/gox
--> netbsd/arm: github.com/mitchellh/gox
--> plan9/386: github.com/mitchellh/gox
```Or, if you want to build a package and sub-packages:
```
$ gox ./...
...
```Or, if you want to build multiple distinct packages:
```
$ gox github.com/mitchellh/gox github.com/hashicorp/serf
...
```Or if you want to just build for linux:
```
$ gox -os="linux"
...
```Or maybe you just want to build for 64-bit linux:
```
$ gox -osarch="linux/amd64"
...
```And more! Just run `gox -h` for help and additional information.
## Versus Other Cross-Compile Tools
A big thanks to these other options for existing. They each paved the
way in many aspects to make Go cross-compilation approachable.* [Dave Cheney's golang-crosscompile](https://github.com/davecheney/golang-crosscompile) -
Gox compiles for multiple platforms and can therefore easily run on
any platform Go supports, whereas Dave's scripts require a shell. Gox
will also parallelize builds. Dave's scripts build sequentially. Gox has
much easier to use OS/Arch filtering built in.* [goxc](https://github.com/laher/goxc) -
A very richly featured tool that can even do things such as build system
packages, upload binaries, generate download webpages, etc. Gox is a
super slim alternative that only cross-compiles binaries. Gox builds packages in parallel, whereas
goxc doesn't. Gox doesn't enforce a specific output structure for built
binaries.