database setup
This commit is contained in:
16
initializers/loadEnvVariables.go
Normal file
16
initializers/loadEnvVariables.go
Normal 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")
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user