Windows 下编译Linux 64位可执行程序

版权声明:本文为原创文章,未经允许不得转载 https://blog.csdn.net/qq_33875256/article/details/85676829

Windows 下编译Linux 64位可执行程序
set GOARCH=amd64
set GOOS=linux
go build

windows下运行set GOARCH=amd64
set GOOS=windows

在CMD窗口执行,不要在Git Bash来执行命令

猜你喜欢

转载自blog.csdn.net/qq_33875256/article/details/85676829