以下是Ubuntu下Golang编译优化技巧:
go build -p [并行数]
go build -p 4
-buildcache true
GOCACHE
-s
-w
-O1
-O2
-O3
sync.Pool
pprof
GOOS=linux GOARCH=amd64 go build