优化CentOS上的Go编译速度可从以下方面入手:
-c
-s
-O
-p
-buildcache=true
go mod vendor
goimports
GOMAXPROCS
gomodproxy
参考来源: