以下是提升Ubuntu下Golang编译性能的方法:
-c
-s
-ldflags "-s -w"
-p
-p 4
GOCACHE
export GOCACHE=$HOME/.go-cache
-modvendor
vendor