Open kevinpostal opened 10 years ago
@kevinpostal is this what you're looking for?
https://github.com/davecheney/golang-crosscompile
I use this to compile windows binaries on linux
you just need to set env variables GOOS
GOARCH
like below command
env GOOS=windows GOARCH=386 go get github.com/AllenDang/w32
Is there any way to use this library when cross compiling on another Operating System? IE. Linux