go相关

mac 上build go  如果想要在centos上面执行 必须使用下面的方式

CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a  -o hello hello.go

不然会报错 :cannot execute binary file

原文地址:https://www.cnblogs.com/xlovepython/p/14668198.html