2 ms·
This is how I've deployed Go code from OSX to a Linux server: brew install go --cross-compile-common GOOS=linux GOARCH=amd64 go build scp thebinary
by benmanns 12y ago
This is how I've deployed Go code from OSX to a Linux server:
brew install go --cross-compile-common
GOOS=linux GOARCH=amd64 go build
scp thebinary user@host:thebinary