From cb2da0ca768b456fd17c6b6440c20c1cbc1316f9 Mon Sep 17 00:00:00 2001 From: William Date: Tue, 12 Mar 2024 19:56:05 +0200 Subject: [PATCH] Add version 0.1.1 initial version Signed-off-by: William --- cmd/speedy_auth/main.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cmd/speedy_auth/main.go b/cmd/speedy_auth/main.go index 7872372..1bdbe5c 100644 --- a/cmd/speedy_auth/main.go +++ b/cmd/speedy_auth/main.go @@ -14,8 +14,11 @@ import ( var databaseConnection *sql.DB +const SERVER_VERSION = "0.1.1" + // initializes the database connections and other connections func initialize() { + err := godotenv.Load() if err != nil { log.Println("Not loading Config from .env") @@ -49,7 +52,7 @@ func initialize() { // if err := m.Up(); err != nil { // log.Fatal(err) // } - + log.Println("Server Version :", SERVER_VERSION) asciiArt := ` ███████ ██████ ███████ ███████ ██████ ██ ██ █████ ██ ██ ████████ ██ ██ @@ -61,6 +64,8 @@ func initialize() { ` log.Println(asciiArt) + + log.Println("") } func main() { initialize()