Started LDAP support
This commit is contained in:
12
util/util.go
Normal file
12
util/util.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package util
|
||||
|
||||
import "os"
|
||||
|
||||
func GetEnvDefault(name string, def string) string {
|
||||
env, exist := os.LookupEnv(name)
|
||||
if exist {
|
||||
return env
|
||||
} else {
|
||||
return def
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user