A:增加HTTP基础功能的访问和HTTP模板

This commit is contained in:
jimmy committed 2025-06-14 00:38:20 +08:00
1 parent e4de5917cd
commit f67e27320f
11 files changed
+620 -6

No files matched your search

+11
View File
@@ -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
}