From d046d06e61f30117eaf4c24a5c09df2e6f946a81 Mon Sep 17 00:00:00 2001 From: stuzer05 Date: Tue, 8 Oct 2024 16:03:55 +0300 Subject: [PATCH] Load .env from executable path --- main.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/main.go b/main.go index 43101ae..3f8ff73 100644 --- a/main.go +++ b/main.go @@ -19,11 +19,7 @@ func main() { exeDir := filepath.Dir(exePath) // Load .env file - err = godotenv.Load(filepath.Join(exeDir, ".env")) - if err != nil { - fmt.Println("Error loading .env file:", err) - return - } + godotenv.Load(filepath.Join(exeDir, ".env")) // Initialize app app, err := app.NewApp()