以下是Ubuntu打包Golang的常见误区及解决方案:
CGO_ENABLED=0
GOOS
GOARCH
GOOS=linux GOARCH=amd64
chmod +x
go mod
go mod tidy
-mod=vendor
-striplinks
go-bindata