package main import ( "os" "github.com/joho/godotenv" ) func main() { // Load .env manualy since config might rely on it godotenv.Load() dbURL := os.Getenv("DATABASE_URL") if dbURL == "" { // Fallback for local dev if .env not loaded or empty dbURL = "postgresql://postgres:password@localhost:5432/sojorn_db" // Guessing name? // Wait, user used 'postgres' db in psql command attempts. // Let's assume standard postgres connection string. // The psql command failed so I don't know the DB Name. // But main.go loads config. Let's rely on that if possible, but importing main's config might be circular or complex if not in a lib. // I'll try to use the one from config.LoadConfig() by importing github.com/patbritton/sojorn-backend/internal/config } }