go build -ldflags
http://studygolang.com/articles/2052ldflags 用法:【路径,非必需,除非你有目录层次】包名.变量[path]packege.valuego build -ldflags "-X other.VERSION=1.0.0 -X gpxj/other.VERSION=1.0.3 -X main.VERSION=1.0.0 -X 'main.BUILD...