https://www.jianshu.com/p/4b345a9e768e

如果在powershell环境中, 需要换中设置方式

$env:GOOS="linux"
$env:GOARCH="amd64"

注意加引号, 下面这篇文章中没有加引号, 运行时会报错

https://www.cnblogs.com/liuyt/p/5677781.html

 

相关文章: