CentOS中Golang打包常见问题及解决方法如下:
libcurl
sudo yum install libcurl-devel
GOOS
GOARCH
export GOOS=linux GOARCH=amd64
go mod tidy
go get
chmod +x
yum