This commit is contained in:
vipg
2026-02-09 16:09:14 +08:00
parent 4541b322b3
commit a8b04bca12
8 changed files with 203 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
package utils
import "os"
func GetEnv(key, def string) string {
val := os.Getenv(key)
if val == "" {
return def
}
return val
}