macOS Golang 1.5+ 跨平台编译

2018-08-15  本文已影响0人  verge_l

Go (Golang) GOOS and GOARCH 列表

跨平台编译时命令示例

env GOOS=windows GOARCH=386 go build -v github.com/path/to/your/app
env GOOS=windows GOARCH=amd64 go build -v github.com/path/to/your/app
env GOOS=linux GOARCH=386 go build -v github.com/path/to/your/app
env GOOS=linux GOARCH=amd64 go build -v github.com/path/to/your/app
上一篇 下一篇

猜你喜欢

热点阅读