go windows交叉编译


创建bat文件 添加一下内容 保存运行

@echo off
set CGO_ENABLED=0
SET GOOS=windows
SET GOARCH=amd64
go build

相关