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
1 changed files with 2 additions and 2 deletions

View File

@ -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 <target hostname>")