init
This commit is contained in:
13
env/env.go
vendored
Normal file
13
env/env.go
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
package env
|
||||
|
||||
import (
|
||||
"os"
|
||||
)
|
||||
|
||||
func GetEnvDefault(key string, def string) string {
|
||||
value := os.Getenv(key)
|
||||
if value == "" {
|
||||
return def
|
||||
}
|
||||
return value
|
||||
}
|
||||
Reference in New Issue
Block a user