Golang cross-compile from any directory

GOPATH=$(readlink -f .):$GOPATH GOOS=windows GOARCH=386 go install path/cmd/directory/

Advertisements