UPDATE: Auth module, User module
Some checks failed
Build and Release / release (push) Failing after 1m25s
Some checks failed
Build and Release / release (push) Failing after 1m25s
This commit is contained in:
@@ -34,3 +34,11 @@ func GetConfig(config string) (string, error) {
|
||||
|
||||
return data, nil
|
||||
}
|
||||
|
||||
func GetConfigWithDefault(config, defaultValue string) string {
|
||||
var data string = os.Getenv(config)
|
||||
if data == "" {
|
||||
return defaultValue
|
||||
}
|
||||
return data
|
||||
}
|
||||
Reference in New Issue
Block a user