hugo-medialog/utils/config.go

15 lines
168 B
Go

package utils
import (
"log"
"github.com/joho/godotenv"
)
func LoadConfig() {
err := godotenv.Load()
if err != nil {
log.Fatal("Error loading .env file")
}
}