This commit is contained in:
zhaoxiaorong
2025-02-07 13:01:38 +08:00
parent ebcdfe1ee8
commit 57a0d8ae81
52 changed files with 3313 additions and 0 deletions

13
env/env.go vendored Normal file
View File

@@ -0,0 +1,13 @@
package env
import (
"os"
)
func GetEnvDefault(key string, def string) string {
value := os.Getenv(key)
if value == "" {
return def
}
return value
}