GoをWindows実行形式でコンパイル
I don’t know why still we need to compile it for windows.
GOOS=windows GOARCH=386 go build -o hello.exe hello.go
参考:
- on Mac, Goはクロスコンパイルが簡単 - unknownplace.org
- on Linux, Building windows go programs on linux
I don’t know why still we need to compile it for windows.
GOOS=windows GOARCH=386 go build -o hello.exe hello.go
参考: