Go (Golang) GOOS and GOARCH 列表
跨平台编译时命令示例
env GOOS=windows GOARCH=386 go build -v github.com/path/to/your/app
env GOOS=windows GOARCH=arm64 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=arm64 go build -v github.com/path/to/your/app
有疑问加站长微信联系(非本文作者)