clone from danieldin95

This commit is contained in:
sicheng
2022-07-29 23:38:54 +08:00
commit ac4f79bbf4
1931 changed files with 568263 additions and 0 deletions

11
cmd/api/utils.go Executable file
View File

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