move version to top of file
This commit is contained in:
parent
ea33973994
commit
eee330aea5
@ -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>")
|
||||||
|
Loading…
Reference in New Issue
Block a user