1
0
forked from baron/baron-sso

refactor: backend tenant_group 제거 및 관련 정리

This commit is contained in:
Lectom C Han
2026-02-12 22:12:57 +09:00
parent d590acfff9
commit b0792113ae
7 changed files with 0 additions and 673 deletions

View File

@@ -1,22 +0,0 @@
package utils
import (
"os"
"strings"
)
// GetEnv retrieves the value of the environment variable named by the key.
// It returns the value if it exists, otherwise it returns the fallback value.
// It automatically strips surrounding double quotes from the value.
func GetEnv(key, fallback string) string {
v := os.Getenv(key)
if v == "" {
return fallback
}
// Strip surrounding double quotes if present
v = strings.TrimSpace(v)
if len(v) >= 2 && v[0] == '"' && v[len(v)-1] == '"' {
return v[1 : len(v)-1]
}
return v
}