在CentOS下提升Golang打包性能可从以下方面入手:
-c
-s
-p
-p 4
-buildcache=true
GOCACHE
go mod vendor
GOMAXPROCS
CGO_ENABLED=0