()
| 34 | ) |
| 35 | |
| 36 | func init() { |
| 37 | version.Version = Version |
| 38 | version.Branch = Branch |
| 39 | version.Revision = Revision |
| 40 | |
| 41 | prometheus.MustRegister(ver.NewCollector(appName)) |
| 42 | |
| 43 | // Register the gogocodec as early as possible. |
| 44 | encoding.RegisterCodec(gogocodec.NewCodec()) |
| 45 | } |
| 46 | |
| 47 | func main() { |
| 48 | printVersion := flag.Bool("version", false, "Print this builds version information") |
nothing calls this directly
no test coverage detected