go-backend-starter-project/initializers/loadEnv.go
2024-02-15 00:36:17 +01:00

14 lines
173 B
Go

package initializers
import (
"github.com/joho/godotenv"
"log"
)
func LoadEnv() {
err := godotenv.Load()
if err != nil {
log.Fatal("Could not load .env file")
}
}