摘要: http://studygolang.com/articles/2052 ldflags 用法:【路径,非必需,除非你有目录层次】包名.变量 [path]packege.value go build -ldflags "-X other.VERSION=1.0.0 -X gpxj/other.VER 阅读全文