Initial commit

This commit is contained in:
Illya Marchenko 2024-09-29 23:41:55 +03:00
parent 0123ffc572
commit cb85168cbd
Signed by: stuzer05
GPG Key ID: A6ABAAA9268F9F4F

View File

@ -8,6 +8,8 @@ import (
"net/http"
"os"
"os/exec"
"path/filepath"
"runtime"
"strings"
)
@ -20,7 +22,8 @@ var (
func main() {
// Load .env file
err := godotenv.Load()
_, b, _, _ := runtime.Caller(0) // @refactor
err := godotenv.Load(filepath.Join(filepath.Dir(b), ".env"))
if err != nil {
fmt.Println("Error loading .env file:", err)
return