database setup

This commit is contained in:
2024-02-21 13:55:57 -06:00
parent b24e476f9c
commit 06094f05b3
5 changed files with 43 additions and 7 deletions

View File

@@ -0,0 +1,16 @@
package initializers
import (
"log"
"github.com/joho/godotenv"
)
func LoadEnvVariables() {
err := godotenv.Load()
if err != nil {
log.Fatal("Error loading .env file")
}
}