ussd/initializers/loadEnvVariables.go

14 lines
191 B
Go
Raw Normal View History

2024-10-14 13:38:12 +02:00
package initializers
import (
"log"
"github.com/joho/godotenv"
)
func LoadEnvVariables() {
err := godotenv.Load()
if err != nil {
log.Fatal("Error loading .env file")
}
}