package utils import ( "os" "strings" ) func GetEnv(key, defaultValue string) string { value := os.Getenv(key) if value == "" { return defaultValue } return value } func GetEnvBool(key string, defaultValue bool) bool { value := strings.ToLower(GetEnv(key, "")) if value == "" { return defaultValue } return value == "true" || value == "1" }