mirror of
https://github.com/luscis/openlan.git
synced 2025-10-06 09:06:54 +08:00
clone from danieldin95
This commit is contained in:
11
cmd/api/utils.go
Executable file
11
cmd/api/utils.go
Executable 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
|
||||
}
|
Reference in New Issue
Block a user