update app

This commit is contained in:
durbok
2024-12-28 15:54:49 +01:00
parent 352e98606f
commit b6bbf30bd0
7 changed files with 165 additions and 0 deletions

19
config/env.go Normal file
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)
}