move version to top of file

This commit is contained in:
Stephen McQuay 2018-03-08 14:45:18 -08:00
parent ea33973994
commit eee330aea5
Signed by: sm
GPG Key ID: 4E4B72F479BA3CE5

View File

@ -15,6 +15,8 @@ import (
"mcquay.me/metrics" "mcquay.me/metrics"
) )
const version = "v0.1.1"
var success *prometheus.CounterVec var success *prometheus.CounterVec
type v struct { type v struct {
@ -58,8 +60,6 @@ func (s *state) update(target string) {
} }
} }
const version = "v0.1.1"
func main() { func main() {
if len(os.Args) < 2 { if len(os.Args) < 2 {
log.Fatal("usage: hwc <target hostname>") log.Fatal("usage: hwc <target hostname>")