A:增加HTTP基础功能的访问和HTTP模板
This commit is contained in:
1 parent
e4de5917cd
commit
f67e27320f
11 files changed
+620
-6
No files matched your search
@@ -0,0 +1,11 @@
|
||||
package utils
|
||||
|
||||
import "os"
|
||||
|
||||
// GetEnv 获取环境变量
|
||||
func GetEnv(key, defaultValue string) string {
|
||||
if value := os.Getenv(key); value != "" {
|
||||
return value
|
||||
}
|
||||
return defaultValue
|
||||
}
|
||||
Reference in new issue
Block a user