在管制台下装置其余零碎的运行时,比方下文是linux x64

set GOARCH=amd64 set GOOS=linuxgo tool dist install -v %GOROOT%\pkggo install -v -a std

而后应用go build 即可编译linux执行文件