From eee330aea54a6df78142df70e1902184c3d761bf Mon Sep 17 00:00:00 2001 From: "Stephen McQuay (smcquay)" Date: Thu, 8 Mar 2018 14:45:18 -0800 Subject: [PATCH] move version to top of file --- cmd/hwc/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/hwc/main.go b/cmd/hwc/main.go index 00350bf..68e5a7a 100644 --- a/cmd/hwc/main.go +++ b/cmd/hwc/main.go @@ -15,6 +15,8 @@ import ( "mcquay.me/metrics" ) +const version = "v0.1.1" + var success *prometheus.CounterVec type v struct { @@ -58,8 +60,6 @@ func (s *state) update(target string) { } } -const version = "v0.1.1" - func main() { if len(os.Args) < 2 { log.Fatal("usage: hwc ")