命令提示符cmd
set GOARCH=amd64 set GOOS=linux go build
Powershell
$Env:GOOS = "linux"; $Env:GOARCH = "amd64" go build