以下是Ubuntu打包Golang的常見誤區及解決方案:
CGO_ENABLED=0
GOOS
GOARCH
GOOS=linux GOARCH=amd64
chmod +x
go mod
go mod tidy
-mod=vendor
-striplinks
go-bindata