add logger, godotenv

This commit is contained in:
2025-10-11 08:40:37 +05:00
parent 664232db0f
commit 0a66e544d6
10 changed files with 310 additions and 11 deletions
@@ -4,6 +4,8 @@ package config
import (
"fmt"
"os"
"github.com/joho/godotenv"
)
type Config struct {
@@ -13,6 +15,7 @@ type Config struct {
}
func Load() *Config {
_ = godotenv.Load(".env")
port := getEnv("PORT", "8080")
jwtSecret := getEnv("JWT_SECRET", "your-secret-key")