Since go 1.5, cross compiler has gotten pretty easy. Something like
env GOOS=linux GOARCH=amd64 go build -v github.com/constabulary/gb/cmd/gb
Refer to http://dave.cheney.net/2015/08/22/cross-compilation-with-go-1-5.
Since go 1.5, cross compiler has gotten pretty easy. Something like
env GOOS=linux GOARCH=amd64 go build -v github.com/constabulary/gb/cmd/gb
Refer to http://dave.cheney.net/2015/08/22/cross-compilation-with-go-1-5.