From e15708fb6bd7ff9de27059e79605a7df17f2a03e Mon Sep 17 00:00:00 2001 From: Stefan Hoffmann Date: Sat, 2 Jan 2021 12:32:38 +0100 Subject: [PATCH] Added version Info --- main.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 4f4359f..f12c326 100644 --- a/main.go +++ b/main.go @@ -22,8 +22,11 @@ const ( // flags var token = flag.String("token", "", "Defines the x-auth-token") +var version = "development" func main() { + + log.Println("starting version", version, "...") // parse all flags flag.Parse() @@ -32,8 +35,6 @@ func main() { log.Fatalln("Please specify an API token via the flag '-token'") } - log.Println("starting...") - // Variables for runtime var links []link var nodes []node