mirror of
https://github.com/luscis/openlan.git
synced 2025-09-26 20:41:29 +08:00
12 lines
137 B
Go
Executable File
12 lines
137 B
Go
Executable File
package api
|
|
|
|
import "os"
|
|
|
|
func GetEnv(key, value string) string {
|
|
val := os.Getenv(key)
|
|
if val == "" {
|
|
return value
|
|
}
|
|
return val
|
|
}
|