From 491f5641157cb1ceedc0ca942687a6e728257f5f Mon Sep 17 00:00:00 2001 From: kolaente Date: Tue, 9 Jan 2018 11:39:36 +0100 Subject: [PATCH] Added version --- main.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main.go b/main.go index af25f29..20e61cd 100644 --- a/main.go +++ b/main.go @@ -17,6 +17,9 @@ type UserLogin struct { Password string `json:"password" form:"password"` } +// Set the version +var Version string = "1.0" + func main() { // Init Config @@ -33,6 +36,9 @@ func main() { os.Exit(1) } + // Version notification + fmt.Println("Library version", Version) + // Start the webserver e := routes.NewEcho() routes.RegisterRoutes(e)