update app

This commit is contained in:
durbok committed 2024-12-28 15:54:49 +01:00
1 parent 352e98606f
commit b6bbf30bd0
7 files changed
+165

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
package config
import (
"log"
"os"
"github.com/joho/godotenv"
)
func LoadEnv() {
err := godotenv.Load()
if err != nil {
log.Fatalf("Error loading .env file")
}
}
func GetEnv(key string) string {
return os.Getenv(key)
}